/[pcre]/code/trunk/pcrecpp_unittest.cc
ViewVC logotype

Diff of /code/trunk/pcrecpp_unittest.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 96 by nigel, Fri Mar 2 13:10:43 2007 UTC revision 179 by ph10, Wed Jun 13 08:53:45 2007 UTC
# Line 806  int main(int argc, char** argv) { Line 806  int main(int argc, char** argv) {
806    /***** FullMatch with no args *****/    /***** FullMatch with no args *****/
807    
808    CHECK(RE("h.*o").FullMatch("hello"));    CHECK(RE("h.*o").FullMatch("hello"));
809    CHECK(!RE("h.*o").FullMatch("othello"));    CHECK(!RE("h.*o").FullMatch("othello"));     // Must be anchored at front
810    CHECK(!RE("h.*o").FullMatch("hello!"));    CHECK(!RE("h.*o").FullMatch("hello!"));      // Must be anchored at end
811      CHECK(RE("a*").FullMatch("aaaa"));           // Fullmatch with normal op
812      CHECK(RE("a*?").FullMatch("aaaa"));          // Fullmatch with nongreedy op
813      CHECK(RE("a*?\\z").FullMatch("aaaa"));       // Two unusual ops
814    
815    /***** FullMatch with args *****/    /***** FullMatch with args *****/
816    

Legend:
Removed from v.96  
changed lines
  Added in v.179

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12