mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 11:16:29 +03:00
hscollider: example test cases
This commit is contained in:
86
tools/hscollider/test_cases/pcre/asserts.txt
Normal file
86
tools/hscollider/test_cases/pcre/asserts.txt
Normal file
@@ -0,0 +1,86 @@
|
||||
23000:/foo.*\bbar/s
|
||||
23001:/foo\b.*bar/s
|
||||
23002:/\bfoo/
|
||||
23003:/\Bfoo/O
|
||||
23004:/(word|nonword~).*\balpha/s
|
||||
23005:/\B~/
|
||||
23006:/foo\b/
|
||||
23007:/foo\B/
|
||||
23008:/foo\b$/
|
||||
23009:/foo\b\z/O
|
||||
23010:/foo.*\b\bbar/s
|
||||
23011:/foo.*\b\b\bbar/s
|
||||
23012:/foo\b.*\bbar/s
|
||||
23013:/foo\B.*\Bbar/s
|
||||
23014:/foo\b.*\Bbar/s
|
||||
23015:/\b\bfoo/
|
||||
23016:/\B\Bfoo/O
|
||||
23017:/\B\B~/
|
||||
23018:/foo\b\b/
|
||||
23019:/foo\B\B/
|
||||
23020:/foo\b\b$/
|
||||
23021:/foo\b\b\z/O
|
||||
23022:/a[b~]+\b/
|
||||
23023:/\b[b~]+a/
|
||||
23024:/\ba/
|
||||
23025:/\b/
|
||||
23026:/\B/
|
||||
23027:/\b\z/
|
||||
23028:/\B\z/
|
||||
23029:/^\b/
|
||||
23030:/^\B/
|
||||
23031:/(a|\A\b)/
|
||||
23032:/(^a|\b)/
|
||||
23033:/^\bfoo/O
|
||||
23034:/^\Bfoo/O
|
||||
23035:/^\b\bfoo/O
|
||||
23036:/^\B\Bfoo/O
|
||||
23037:/foo.*(\b|\B)bar/O
|
||||
23038:/three.*\b\b\basserts/
|
||||
23039:/three.*\B\B\Basserts/
|
||||
23040:/can't_match\b\B/O
|
||||
23041:/\b\Bcan't_match/O
|
||||
23042:/\b(.*)\b/s
|
||||
23043:/\b(foo|bar|baz)\b/
|
||||
|
||||
# More tests: repeats
|
||||
23044:/((\b){2,})+/
|
||||
23045:/((\b){10,})+/
|
||||
23046:/((\b|a){2,})+/
|
||||
23047:/(\b[a-f]\b)+/
|
||||
23048:/(((\b[a-f]+\b) ?))+/
|
||||
|
||||
# multiline bi-anchored boundaries
|
||||
23049:/^(\B)/m
|
||||
23050:/^(\b)/m
|
||||
23051:/^\b$/m
|
||||
23052:/^\b\Z/m
|
||||
23053:/^\b\z/mO
|
||||
23054:/\A\b$/m
|
||||
23055:/\A\b\Z/m
|
||||
23056:/\A\b\z/m
|
||||
23057:/^\B$/m
|
||||
23058:/^\B\Z/m
|
||||
23059:/^\B\z/m
|
||||
23060:/\A\B$/m
|
||||
23061:/\A\B\Z/m
|
||||
23062:/\A\B\z/m
|
||||
23063:/\b.*\b/s
|
||||
23064:/\B.*\B/s
|
||||
23065:/\b.*\B/s
|
||||
23066:/\B.*\b/s
|
||||
23067:/\b.+\b/s
|
||||
23068:/\B.+\B/s
|
||||
23069:/\b.+\B/s
|
||||
23070:/\B.+\b/s
|
||||
23071:/l(\B.)*/i
|
||||
23072:/(a?.\b){4,}bbabb/
|
||||
23073:/\A\B/
|
||||
23074:/\A\b/
|
||||
|
||||
23075:/\b[a-f]+\b/
|
||||
|
||||
# Asserts near repeats.
|
||||
23076:/godzilla\b.{0,10}mothra/s
|
||||
23077:/godzilla.{0,10}\bmothra/s
|
||||
23078:/godzilla\b.{0,10}\bmothra/s
|
Reference in New Issue
Block a user