/[pcre]/code/trunk/pcre_jit_test.c
ViewVC logotype

Diff of /code/trunk/pcre_jit_test.c

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

revision 1290 by zherczeg, Sat Mar 16 18:45:51 2013 UTC revision 1300 by zherczeg, Mon Mar 25 12:34:26 2013 UTC
# Line 694  static struct regression_test_case regre Line 694  static struct regression_test_case regre
694          { MUA, 0 | F_NOMATCH, "a(*COMMIT)b", "ac" },          { MUA, 0 | F_NOMATCH, "a(*COMMIT)b", "ac" },
695          { MUA, 0, "aa(*COMMIT)b", "xaxaab" },          { MUA, 0, "aa(*COMMIT)b", "xaxaab" },
696          { MUA, 0 | F_NOMATCH, "a(*COMMIT)(*:msg)b|ac", "ac" },          { MUA, 0 | F_NOMATCH, "a(*COMMIT)(*:msg)b|ac", "ac" },
         { MUA, 0, "(?=a(*COMMIT)b|ac)ac|(*:m)(a)c", "ac" },  
         { MUA, 0, "(?!a(*COMMIT)(*:msg)b)a(c)|cd", "acd" },  
         { MUA, 0, "(?=(a)(*COMMIT)b)|ac", "ac" },  
         { MUA, 0, "(?=(a)+(*COMMIT)b)|ac", "ac" },  
697          { MUA, 0 | F_NOMATCH, "(a(*COMMIT)b)++", "abac" },          { MUA, 0 | F_NOMATCH, "(a(*COMMIT)b)++", "abac" },
698          { MUA, 0 | F_NOMATCH, "((a)(*COMMIT)b)++", "abac" },          { MUA, 0 | F_NOMATCH, "((a)(*COMMIT)b)++", "abac" },
699            { MUA, 0 | F_NOMATCH, "(?=a(*COMMIT)b)ab|ad", "ad" },
700    
701          /* (*PRUNE) verb. */          /* (*PRUNE) verb. */
702          { MUA, 0, "aa\\K(*PRUNE)b", "aaab" },          { MUA, 0, "aa\\K(*PRUNE)b", "aaab" },
# Line 708  static struct regression_test_case regre Line 705  static struct regression_test_case regre
705          { MUA, 0, "(a)(a)(a)(a)(a)(a)(a)(a)(*PRUNE)b|(a)", "aaaaaaaa" },          { MUA, 0, "(a)(a)(a)(a)(a)(a)(a)(a)(*PRUNE)b|(a)", "aaaaaaaa" },
706          { MUA | PCRE_PARTIAL_SOFT, 0, "a(*PRUNE)a|", "a" },          { MUA | PCRE_PARTIAL_SOFT, 0, "a(*PRUNE)a|", "a" },
707          { MUA | PCRE_PARTIAL_SOFT, 0, "a(*PRUNE)a|m", "a" },          { MUA | PCRE_PARTIAL_SOFT, 0, "a(*PRUNE)a|m", "a" },
708            { MUA, 0 | F_NOMATCH, "(?=a(*PRUNE)b)ab|ad", "ad" },
709          { MUA, 0, "a(*COMMIT)(*PRUNE)d|bc", "abc" },          { MUA, 0, "a(*COMMIT)(*PRUNE)d|bc", "abc" },
710          { MUA, 0, "(?=a(*COMMIT)b)a(*PRUNE)c|bc", "abc" },          { MUA, 0, "(?=a(*COMMIT)b)a(*PRUNE)c|bc", "abc" },
711          { MUA, 0 | F_NOMATCH, "(*COMMIT)(?=a(*COMMIT)b)a(*PRUNE)c|bc", "abc" },          { MUA, 0 | F_NOMATCH, "(*COMMIT)(?=a(*COMMIT)b)a(*PRUNE)c|bc", "abc" },
# Line 732  static struct regression_test_case regre Line 730  static struct regression_test_case regre
730          { MUA, 0, "(?>a(*COMMIT)b)??n(*PRUNE)d|bn", "abn" },          { MUA, 0, "(?>a(*COMMIT)b)??n(*PRUNE)d|bn", "abn" },
731          { MUA, 0 | F_NOMATCH, "(*COMMIT)(?>a(*COMMIT)b)??n(*PRUNE)d|bn", "abn" },          { MUA, 0 | F_NOMATCH, "(*COMMIT)(?>a(*COMMIT)b)??n(*PRUNE)d|bn", "abn" },
732    
733            /* (*SKIP) verb. */
734            { MUA, 0 | F_NOMATCH, "(?=a(*SKIP)b)ab|ad", "ad" },
735    
736          /* (*THEN) verb. */          /* (*THEN) verb. */
737          { MUA, 0, "((?:a(*THEN)|aab)(*THEN)c|a+)+m", "aabcaabcaabcaabcnacm" },          { MUA, 0, "((?:a(*THEN)|aab)(*THEN)c|a+)+m", "aabcaabcaabcaabcnacm" },
738          { MUA, 0 | F_NOMATCH, "((?:a(*THEN)|aab)(*THEN)c|a+)+m", "aabcm" },          { MUA, 0 | F_NOMATCH, "((?:a(*THEN)|aab)(*THEN)c|a+)+m", "aabcm" },
739          { MUA, 0, "((?:a(*THEN)|aab)c|a+)+m", "aabcaabcnmaabcaabcm" },          { MUA, 0, "((?:a(*THEN)|aab)c|a+)+m", "aabcaabcnmaabcaabcm" },
740          { MUA, 0, "((?:a|aab)(*THEN)c|a+)+m", "aam" },          { MUA, 0, "((?:a|aab)(*THEN)c|a+)+m", "aam" },
741          { MUA, 0, "((?:a(*COMMIT)|aab)(*THEN)c|a+)+m", "aam" },          { MUA, 0, "((?:a(*COMMIT)|aab)(*THEN)c|a+)+m", "aam" },
742            { MUA, 0, "(?(?=a(*THEN)b)ab|ad)", "ad" },
743            { MUA, 0, "(?(?!a(*THEN)b)ad|add)", "add" },
744            { MUA, 0 | F_NOMATCH, "(?(?=a)a(*THEN)b|ad)", "ad" },
745            { MUA, 0, "(?!(?(?=a)ab|b(*THEN)d))bn|bnn", "bnn" },
746    
747          /* Deep recursion. */          /* Deep recursion. */
748          { MUA, 0, "((((?:(?:(?:\\w)+)?)*|(?>\\w)+?)+|(?>\\w)?\?)*)?\\s", "aaaaa+ " },          { MUA, 0, "((((?:(?:(?:\\w)+)?)*|(?>\\w)+?)+|(?>\\w)?\?)*)?\\s", "aaaaa+ " },

Legend:
Removed from v.1290  
changed lines
  Added in v.1300

  ViewVC Help
Powered by ViewVC 1.1.5