more test
This commit is contained in:
1
pike.c
1
pike.c
@@ -585,6 +585,7 @@ int re_pikevm(rcode *prog, const char *s, const char **subp, int nsubp)
|
|||||||
goto addthread;
|
goto addthread;
|
||||||
case MATCH:
|
case MATCH:
|
||||||
matched = nsub;
|
matched = nsub;
|
||||||
|
subidx = 0;
|
||||||
goto BreakFor;
|
goto BreakFor;
|
||||||
}
|
}
|
||||||
nsub->ref--;
|
nsub->ref--;
|
||||||
|
|||||||
9
test.sh
9
test.sh
@@ -46,6 +46,9 @@ b[^c]*
|
|||||||
called|chief|dust|familiar|forth|waif|campaign|divers|smile|notice|kill|human|stands|nightshade|dollar|doughty|gloaming|twist|July|officers|wrest|coop|one|ability|welcome|significance|writer|spring|it's|helped|set|Paris|from|coomb|stay|hummock|taken|anon|makes|boat|nearly|am|justice|further|expression|contemporary|sooth|order|about|question|lived|apply|educational|of|night|satisfy|opened|never|success|until|visit|promise|parts|beneath|matter|typical|bade|apartment|rapidly|primary|bring|throat|hold|laws|understand|trade|desire|material|evidence|another|often|plash|model|someone|bond|hell|relationship|probably|exercise|performance|wants|known|countries|gammer|leeward|took|itself|representative|objection|aircraft
|
called|chief|dust|familiar|forth|waif|campaign|divers|smile|notice|kill|human|stands|nightshade|dollar|doughty|gloaming|twist|July|officers|wrest|coop|one|ability|welcome|significance|writer|spring|it's|helped|set|Paris|from|coomb|stay|hummock|taken|anon|makes|boat|nearly|am|justice|further|expression|contemporary|sooth|order|about|question|lived|apply|educational|of|night|satisfy|opened|never|success|until|visit|promise|parts|beneath|matter|typical|bade|apartment|rapidly|primary|bring|throat|hold|laws|understand|trade|desire|material|evidence|another|often|plash|model|someone|bond|hell|relationship|probably|exercise|performance|wants|known|countries|gammer|leeward|took|itself|representative|objection|aircraft
|
||||||
abc+h+d+f
|
abc+h+d+f
|
||||||
([0-9]|abc){5}[0-9]+(grh)
|
([0-9]|abc){5}[0-9]+(grh)
|
||||||
|
[A-Fa-f0-9]{64}
|
||||||
|
<tag>[^<]*</tag>
|
||||||
|
^([a-z0-9_.-]+)@([0-9a-z.-]+)\\\\.([a-z.]{2,5})$
|
||||||
"
|
"
|
||||||
input="\
|
input="\
|
||||||
abcdef
|
abcdef
|
||||||
@@ -93,6 +96,9 @@ aaaabcdefghij
|
|||||||
hhfd h23 performance
|
hhfd h23 performance
|
||||||
abcccccccccccchdf
|
abcccccccccccchdf
|
||||||
344444442344grhhhsdfg
|
344444442344grhhhsdfg
|
||||||
|
bf33d4a0dbbee85061531c9d47e5aae692c0729e5c9c1fa21c46d9bcab5f52c5
|
||||||
|
ajdas <tag> sidufisudf hsdfhshdfh sdf </tag> asjdfjs
|
||||||
|
veloval596@godpeed.com
|
||||||
"
|
"
|
||||||
expect="\
|
expect="\
|
||||||
(0,3)
|
(0,3)
|
||||||
@@ -140,6 +146,9 @@ expect="\
|
|||||||
(10,21)
|
(10,21)
|
||||||
(0,17)
|
(0,17)
|
||||||
(0,15)(4,5)(12,15)
|
(0,15)(4,5)(12,15)
|
||||||
|
(0,64)
|
||||||
|
(6,44)
|
||||||
|
(0,22)(0,10)(11,18)(19,22)
|
||||||
(0,0)
|
(0,0)
|
||||||
"
|
"
|
||||||
c=1
|
c=1
|
||||||
|
|||||||
Reference in New Issue
Block a user