mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
[REGEX] add a unit test for regexes containing chars with value over x80
This commit is contained in:
parent
45035ffa1a
commit
95aa395ddd
@ -1,2 +1,3 @@
|
||||
dfa matching:$TEST_TOOL ./matcher_t dev_patterns < devices.list > matcher_t.output && diff -u matcher_t.expected matcher_t.output
|
||||
dfa matching:$TEST_TOOL ./matcher_t random_regexes < /dev/null > matcher_t.output && diff -u matcher_t.expected2 matcher_t.output
|
||||
dfa matching:$TEST_TOOL ./matcher_t --fingerprint dev_patterns < devices.list > matcher_t.output && diff -u matcher_t.expected matcher_t.output
|
||||
dfa matching:$TEST_TOOL ./matcher_t --fingerprint random_regexes < /dev/null > matcher_t.output && diff -u matcher_t.expected2 matcher_t.output
|
||||
dfa with non-print regex chars:$TEST_TOOL ./matcher_t nonprint_regexes < nonprint_input > matcher_t.output && diff -u matcher_t.expected3 matcher_t.output
|
3
unit-tests/regex/matcher_t.expected3
Normal file
3
unit-tests/regex/matcher_t.expected3
Normal file
@ -0,0 +1,3 @@
|
||||
foo€bar : €
|
||||
fooÂb : fooÂb
|
||||
€ : €
|
4
unit-tests/regex/nonprint_input
Normal file
4
unit-tests/regex/nonprint_input
Normal file
@ -0,0 +1,4 @@
|
||||
foo.bar
|
||||
foo€bar
|
||||
fooÂb
|
||||
€
|
3
unit-tests/regex/nonprint_regexes
Normal file
3
unit-tests/regex/nonprint_regexes
Normal file
@ -0,0 +1,3 @@
|
||||
"foo€bar"
|
||||
"fooÂb"
|
||||
"€"
|
Loading…
Reference in New Issue
Block a user