diff options
Diffstat (limited to 'testdata')
| -rw-r--r-- | testdata/parse/basic.txt | 29 | ||||
| -rw-r--r-- | testdata/parse/basic2.txt | 69 | ||||
| -rw-r--r-- | testdata/parse/comments.txt | 108 | ||||
| -rw-r--r-- | testdata/parse/conjunction.txt | 21 | ||||
| -rw-r--r-- | testdata/parse/disjunction.txt | 11 | ||||
| -rw-r--r-- | testdata/parse/empty.txt | 12 | ||||
| -rw-r--r-- | testdata/parse/equality.txt | 43 | ||||
| -rw-r--r-- | testdata/parse/error.txt | 38 | ||||
| -rw-r--r-- | testdata/parse/error2.txt | 129 | ||||
| -rw-r--r-- | testdata/parse/expr.txt | 21 | ||||
| -rw-r--r-- | testdata/parse/function.txt | 36 | ||||
| -rw-r--r-- | testdata/parse/function2.txt | 41 | ||||
| -rw-r--r-- | testdata/parse/member.txt | 57 | ||||
| -rw-r--r-- | testdata/parse/negation.txt | 33 | ||||
| -rw-r--r-- | testdata/parse/other.txt | 64 | ||||
| -rw-r--r-- | testdata/parse/parentheses.txt | 19 | ||||
| -rw-r--r-- | testdata/parse/phrase.txt | 99 | ||||
| -rw-r--r-- | testdata/parse/prec.txt | 9 | ||||
| -rw-r--r-- | testdata/parse/regexp.txt | 137 | ||||
| -rw-r--r-- | testdata/parse/unicode.txt | 59 |
20 files changed, 1035 insertions, 0 deletions
diff --git a/testdata/parse/basic.txt b/testdata/parse/basic.txt new file mode 100644 index 0000000..bc16e53 --- /dev/null +++ b/testdata/parse/basic.txt @@ -0,0 +1,29 @@ +# Basic parsing tests. +-- basic1.test -- +x = 42 +-- basic1.out -- +compare = + x + 42 +-- basic2.test -- +a : b c = 17 +-- basic2.out -- +conjunction + compare : + a + b + compare = + c + 17 +-- basic3.test -- +x == 42 +-- basic3.err -- +1:3: expected identifier or value +-- basic4.test -- +a : AND b c = 17 +-- basic4.err -- +1:4: misplaced AND/OR/NOT +-- basic5.test -- +a : b c = 17 - +-- basic5.err -- +2:0: expected identifier or value diff --git a/testdata/parse/basic2.txt b/testdata/parse/basic2.txt new file mode 100644 index 0000000..5cc996f --- /dev/null +++ b/testdata/parse/basic2.txt @@ -0,0 +1,69 @@ +# More basic parsing tests. +-- basic10.test -- +foo +-- basic10.out -- +foo +-- basic11.test -- +foo() +-- basic11.out -- +call foo +-- basic12.test -- +foo = "bar" +-- basic12.out -- +compare = + foo + "bar" +-- basic13.test -- +foo=42s +-- basic13.out -- +compare = + foo + 42s +-- basic14.test -- +foo=4.2.s +-- basic14.out -- +compare = + foo + 4.2.s +-- basic15.test -- +foo=42.1s +-- basic15.out -- +compare = + foo + 42.1s +-- basic16.test -- +foo=42.1337s +-- basic16.out -- +compare = + foo + 42.1337s +-- basic17.test -- +foo=42.1337.24601s +-- basic17.out -- +compare = + foo + 42.1337.24601s +-- basic18.test -- +foo=42.s +-- basic18.out -- +compare = + foo + 42.s +-- basic19.test -- +foo=.42.s +-- basic19.out -- +compare = + foo + .42.s +-- basic20.test -- +foo..1.2 +-- basic20.out -- +foo..1.2 +-- basic21.test -- +foo..1..2 +-- basic21.out -- +foo..1..2 +-- basic22.test -- +2019-01..2023-01 +-- basic22.out -- +2019-01..2023-01 diff --git a/testdata/parse/comments.txt b/testdata/parse/comments.txt new file mode 100644 index 0000000..0bd3e04 --- /dev/null +++ b/testdata/parse/comments.txt @@ -0,0 +1,108 @@ +# Comment tests. +-- comment1.test -- +-- +-- comment1.out -- +-- comment2.test -- +-- Just a comment single line +-- comment2.out -- +-- comment3.test -- + -- Just an indented comment single line +-- comment3.out -- +-- comment4.test -- + + -- Just a comment + -- + -- a lone comment + +-- comment4.out -- +-- comment5.test -- + + term + -- Ending comment + +-- comment5.out -- +term +-- comment6.test -- + + -- opening comment + term + +-- comment6.out -- +term +-- comment7.test -- + + term -- same-line comment + +-- comment7.out -- +term +-- comment8.test -- + + foo + -- implicit conjunction preceding comment + bar + baz + +-- comment8.out -- +conjunction + conjunction + foo + bar + baz +-- comment9.test -- + + foo + bar -- implicit conjunction inline comment + baz + +-- comment9.out -- +conjunction + conjunction + foo + bar + baz +-- comment10.test -- + + foo AND + bar AND -- explicit conjunction inline comment + baz + +-- comment10.out -- +conjunction + conjunction + foo + bar + baz +-- comment11.test -- + + foo OR + bar OR -- explicit disjunction inline comment + baz + +-- comment11.out -- +disjunction + disjunction + foo + bar + baz +-- comment12.test -- + + -- multi-line + -- comment + -- block + (foo OR -- next one + bar) + bar + --comment 1 + baz + qux -- comment 2 + -- comment 3 +-- comment12.out -- +conjunction + conjunction + conjunction + disjunction + foo + bar + bar + baz + qux diff --git a/testdata/parse/conjunction.txt b/testdata/parse/conjunction.txt new file mode 100644 index 0000000..df6252f --- /dev/null +++ b/testdata/parse/conjunction.txt @@ -0,0 +1,21 @@ +# Conjunction tests. +-- conjunction1.test -- + a : b c = 17 +-- conjunction1.out -- +conjunction + compare : + a + b + compare = + c + 17 +-- conjunction2.test -- +date>yesterday AND size<20 +-- conjunction2.out -- +conjunction + compare > + date + yesterday + compare < + size + 20 diff --git a/testdata/parse/disjunction.txt b/testdata/parse/disjunction.txt new file mode 100644 index 0000000..b22efae --- /dev/null +++ b/testdata/parse/disjunction.txt @@ -0,0 +1,11 @@ +# Disjunction tests. +-- disjunction1.test -- +a:1 OR b=2 +-- disjunction1.out -- +disjunction + compare : + a + 1 + compare = + b + 2 diff --git a/testdata/parse/empty.txt b/testdata/parse/empty.txt new file mode 100644 index 0000000..be4be4b --- /dev/null +++ b/testdata/parse/empty.txt @@ -0,0 +1,12 @@ +# Empty input tests. +-- empty1.test -- +-- empty1.out -- +-- empty2.test -- + +-- empty2.out -- +-- empty3.test -- +route = /a/route* +-- empty3.out -- +compare = + route + /a/route* diff --git a/testdata/parse/equality.txt b/testdata/parse/equality.txt new file mode 100644 index 0000000..bb11f80 --- /dev/null +++ b/testdata/parse/equality.txt @@ -0,0 +1,43 @@ +# Equality tests. +-- equality1.test -- +a!=b +-- equality1.out -- +compare != + a + b +-- equality2.test -- +a != b +-- equality2.out -- +compare != + a + b +-- equality3.test -- +a!= b +-- equality3.out -- +compare != + a + b +-- equality4.test -- +a !=b +-- equality4.out -- +compare != + a + b +-- equality5.test -- +a!b!=c +-- equality5.out -- +compare != + a!b + c +-- equality6.test -- +a!=b!c +-- equality6.out -- +compare != + a + b!c +-- equality7.test -- +a=/b/ +-- equality7.out -- +compare = + a + /b/ diff --git a/testdata/parse/error.txt b/testdata/parse/error.txt new file mode 100644 index 0000000..efbfe6a --- /dev/null +++ b/testdata/parse/error.txt @@ -0,0 +1,38 @@ +# Erroneous tests +-- error1.test -- +x == 42 +-- error1.err -- +1:3: expected identifier or value +-- error2.test -- +"\+" +-- error2.out -- +"+" +-- error3.test -- +"\*" +-- error3.out -- +"*" +-- error4.test -- +"\>" +-- error4.out -- +">" +-- error5.test -- +"YěHN摁Băo\+钬徯h?+8刄" +-- error5.out -- +"YěHN摁Băo+钬徯h?+8刄" +-- error6.test -- +-"ŊWf鿅qĒĘSɇ息¢f\*" +-- error6.out -- +minus + "ŊWf鿅qĒĘSɇ息¢f*" +-- error7.test -- +"炠Ě戌N*劥y畝\+" +-- error7.out -- +"炠Ě戌N*劥y畝+" +-- error8.test -- +"缻\\>Ȥ恶´帛砜Ɏ拟" +-- error8.out -- +"缻\\>Ȥ恶´帛砜Ɏ拟" +-- error9.test -- +"\xa0\xa1" +-- error9.out -- +"\u{a0}¡" diff --git a/testdata/parse/error2.txt b/testdata/parse/error2.txt new file mode 100644 index 0000000..2c465f3 --- /dev/null +++ b/testdata/parse/error2.txt @@ -0,0 +1,129 @@ +# More parser error tests. +-- error10.test -- +a: .a +-- error10.err -- +1:3: expected identifier or value +-- error11.test -- +a:-b +-- error11.err -- +1:2: expected identifier or value +-- error12.test -- +a[$b] ~ "c*" +-- error12.err -- +1:6: expected identifier or value +-- error13.test -- +( +-- error13.err -- +2:0: expected identifier or value +-- error14.test -- +argument(1, 2 +-- error14.err -- +2:0: expected comma after function argument +-- error15.test -- +.( +-- error15.err -- +1:0: expected identifier or value +-- error16.test -- +- +-- error16.err -- +2:0: expected identifier or value +-- error17.test -- +=~ +-- error17.err -- +1:0: expected identifier or value +-- error18.test -- +!~ +-- error18.err -- +1:0: expected identifier or value +-- error19.test -- +NOT +-- error19.err -- +2:0: expected identifier or value +-- error20.test -- +" +-- error20.err -- +1:1: expected identifier or value +-- error21.test -- +a b +-- error21.err -- +1:2: expected identifier or value +-- error22.test -- +() +-- error22.err -- +1:1: expected identifier or value +-- error23.test -- +\u10 +-- error23.err -- +1:1: expected identifier or value +-- error24.test -- +a: +-- error24.err -- +2:0: expected identifier or value +-- error25.test -- +=123 +-- error25.err -- +1:0: expected identifier or value +-- error26.test -- +(foo OR (bar baz) +-- error26.err -- +2:0: expected right parenthesis after expression +-- error27.test -- +foo OR AND bar +-- error27.err -- +1:7: misplaced AND/OR/NOT +-- error28.test -- +foo, bar +-- error28.err -- +1:3: expected identifier or value +-- error29.test -- +foo=+-3 +-- error29.err -- +1:4: expected identifier or value +-- error30.test -- +foo>>3 +-- error30.err -- +1:4: expected identifier or value +-- error31.test -- +foo..bar=3 +-- error31.err -- +1:4: expected identifier +-- error32.test -- +foo."bar=3 +-- error32.err -- +1:5: expected identifier +-- error33.test -- +"abc \xa0 xyz" +-- error33.out -- +"abc \u{a0} xyz" +-- error34.test -- +foo = "abc \xa0 xyz" +-- error34.out -- +compare = + foo + "abc \u{a0} xyz" +-- error35.test -- +"abc \xa0 xyz" +-- error35.out -- +"abc \u{a0} xyz" +-- error36.test -- +foo =~ /no-terminating-slash +-- error36.err -- +1:8: regular expression is not a quoted string +-- error37.test -- +AND +-- error37.err -- +1:0: misplaced AND/OR/NOT +-- error38.test -- +:hello +-- error38.err -- +1:0: expected identifier or value +-- error39.test -- +hello: +-- error39.err -- +2:0: expected identifier or value +-- error40.test -- + + +hello: +-- error40.err -- +4:0: expected identifier or value diff --git a/testdata/parse/expr.txt b/testdata/parse/expr.txt new file mode 100644 index 0000000..eb87924 --- /dev/null +++ b/testdata/parse/expr.txt @@ -0,0 +1,21 @@ +# Expression tests +-- expr1.test -- +abc +-- expr1.out -- +abc +-- expr2.test -- +\+YěHN摁Băo +-- expr2.out -- ++YěHN摁Băo +-- expr3.test -- +ŊWf鿅qĒĘSɇ息¢f +-- expr3.out -- +ŊWf鿅qĒĘSɇ息¢f +-- expr4.test -- +炠Ě戌N*劥y畝 +-- expr4.out -- +炠Ě戌N*劥y畝 +-- expr5.test -- +缻\>Ȥ恶´帛砜Ɏ拟 +-- expr5.out -- +缻>Ȥ恶´帛砜Ɏ拟 diff --git a/testdata/parse/function.txt b/testdata/parse/function.txt new file mode 100644 index 0000000..1a20c82 --- /dev/null +++ b/testdata/parse/function.txt @@ -0,0 +1,36 @@ +# Function tests. +-- func1.test -- +func(val) +-- func1.out -- +call func + val +-- func2.test -- +a: func(val) +-- func2.out -- +compare : + a + call func + val +-- func3.test -- +n1.n2.n3.func(val) +-- func3.out -- +call n1.n2.n3.func + val +-- func4.test -- +a: n1.n2.func(val) +-- func4.out -- +compare : + a + call n1.n2.func + val +-- func5.test -- +a.b() +-- func5.out -- +call a.b +-- func6.test -- +x > a.b.c(d) +-- func6.out -- +compare > + x + call a.b.c + d diff --git a/testdata/parse/function2.txt b/testdata/parse/function2.txt new file mode 100644 index 0000000..b24e703 --- /dev/null +++ b/testdata/parse/function2.txt @@ -0,0 +1,41 @@ +# More function tests. +-- func10.test -- +!@#$%^&*() +-- func10.out -- +call !@#$%^&* +-- func11.test -- +!@#$%^&*(arg) +-- func11.out -- +call !@#$%^&* + arg +-- func12.test -- +foo() +-- func12.out -- +call foo +-- func13.test -- +a > foo() +-- func13.out -- +compare > + a + call foo +-- func14.test -- +b < foo(3) +-- func14.out -- +compare < + b + call foo + 3 +-- func15.test -- +a > b.c.d(e) +-- func15.out -- +compare > + a + call b.c.d + e +-- func16.test -- +a > b.c.d(e) +-- func16.out -- +compare > + a + call b.c.d + e diff --git a/testdata/parse/member.txt b/testdata/parse/member.txt new file mode 100644 index 0000000..23486a1 --- /dev/null +++ b/testdata/parse/member.txt @@ -0,0 +1,57 @@ +# Member tests. +-- member1.test -- +a.b > 17 +-- member1.out -- +compare > + a.b + 17 +-- member2.test -- +a."b" > 7.6 +-- member2.out -- +compare > + a.b + 7.6 +-- member3.test -- +a.3.4 > 5.6 +-- member3.out -- +compare > + a.3.4 + 5.6 +-- member4.test -- +a."3"."4" > 5.6 +-- member4.out -- +compare > + a.3.4 + 5.6 +-- member5.test -- +a.b.c.d > 17 +-- member5.out -- +compare > + a.b.c.d + 17 +-- member6.test -- +a.2.3.4.5 > 3.14 +-- member6.out -- +compare > + a.2.3.4.5 + 3.14 +-- member7.test -- +1.2.3.4.5 > 3.14 +-- member7.out -- +compare > + 1.2.3.4.5 + 3.14 +-- member8.test -- +a.b +-- member8.out -- +a.b +-- member9.test -- +a[b] +-- member9.out -- +a[b] +-- member10.test -- +a.NOT.OR.AND:value +-- member10.out -- +compare : + a.NOT.OR.AND + value diff --git a/testdata/parse/negation.txt b/testdata/parse/negation.txt new file mode 100644 index 0000000..588ca6e --- /dev/null +++ b/testdata/parse/negation.txt @@ -0,0 +1,33 @@ +# Negation tests. +-- negation1.test -- +-a < 1 +-- negation1.out -- +minus + compare < + a + 1 +-- negation2.test -- +NOT a > 3 +-- negation2.out -- +not + compare > + a + 3 +-- negation3.test -- +-foo=(bar OR baz) +-- negation3.out -- +minus + compare = + foo + disjunction + bar + baz +-- negation4.test -- +NOT foo=(bar OR baz) +-- negation4.out -- +not + compare = + foo + disjunction + bar + baz diff --git a/testdata/parse/other.txt b/testdata/parse/other.txt new file mode 100644 index 0000000..abacfba --- /dev/null +++ b/testdata/parse/other.txt @@ -0,0 +1,64 @@ +# Other random tests. +-- other1.test -- +a[ argument(1) ]: latlng(3.0, 5.3) +-- other1.out -- +conjunction + conjunction + a[ + call argument + 1 + compare : + ] + call latlng + 3.0 + 5.3 +-- other2.test -- +a[ b ] >= 7.6 +-- other2.out -- +conjunction + conjunction + a[ + b + compare >= + ] + 7.6 +-- other3.test -- +a[ "b" ] <= 3.14 +-- other3.out -- +conjunction + conjunction + a[ + "b" + compare <= + ] + 3.14 +-- other4.test -- +field : parent.child +-- other4.out -- +compare : + field + parent.child +-- other5.test -- +field : foo* +-- other5.out -- +compare : + field + foo* +-- other6.test -- +field : foo\* +-- other6.out -- +compare : + field + foo* +-- other7.test -- +/foo.bar/ +-- other7.out -- +/foo.bar/ +-- other8.test -- +((foo)) +-- other8.out -- +foo +-- other9.test -- +((foo)) +-- other9.out -- +foo diff --git a/testdata/parse/parentheses.txt b/testdata/parse/parentheses.txt new file mode 100644 index 0000000..0b6ea0e --- /dev/null +++ b/testdata/parse/parentheses.txt @@ -0,0 +1,19 @@ +# Tests with parentheses +-- parentheses1.test -- +(a>1) OR ((b<2 AND c:3) AND d=4) +-- parentheses1.out -- +disjunction + compare > + a + 1 + conjunction + conjunction + compare < + b + 2 + compare : + c + 3 + compare = + d + 4 diff --git a/testdata/parse/phrase.txt b/testdata/parse/phrase.txt new file mode 100644 index 0000000..4bae3f7 --- /dev/null +++ b/testdata/parse/phrase.txt @@ -0,0 +1,99 @@ +# Phrase tests. +-- phrase1.test -- +empty:"" +-- phrase1.out -- +compare : + empty + "" +-- phrase2.test -- +non-empty:"phrase" +-- phrase2.out -- +compare : + non-empty + "phrase" +-- phrase3.test -- +unicode:"Да!" +-- phrase3.out -- +compare : + unicode + "Да!" +-- phrase4.test -- +value:"\x66\x6f\x6F" +-- phrase4.out -- +compare : + value + "foo" +-- phrase5.test -- +X X +X XX X +X +-- phrase5.out -- +conjunction + conjunction + conjunction + conjunction + conjunction + conjunction + X + X + X + X + X + X + X +-- phrase6.test -- +payload:"not --a --comment=10 -- foo" +-- phrase6.out -- +compare : + payload + "not --a --comment=10 -- foo" +-- phrase7.test -- +value: "this is a phrase" +-- phrase7.out -- +compare : + value + "this is a phrase" +-- phrase8.test -- +value: "this is a phrase" +-- phrase8.out -- +compare : + value + "this is a phrase" +-- phrase9.test -- +value: "open quote +-- phrase9.err -- +1:8: expected identifier or value +-- phrase10.test -- +value: "open quote +-- phrase10.err -- +1:8: expected identifier or value +-- phrase11.test -- +value: "\, \: \= \< \> \+ \~ \" \\ \. \*" +-- phrase11.out -- +compare : + value + ", : = < > + ~ \" \\ . *" +-- phrase12.test -- +value: "\a \b \f \n \r \t \v" +-- phrase12.out -- +compare : + value + "\u{7} \u{8} \u{c} \n \r \t \u{b}" +-- phrase13.test -- +value:"(foo)-.bar" +-- phrase13.out -- +compare : + value + "(foo)-.bar" +-- phrase14.test -- + url = "https\://www\.google\.com/test\?a\=b" +-- phrase14.out -- +compare = + url + "https://www.google.com/test\\?a=b" +-- phrase15.test -- + url = "https\://www\.google\.com/test\?a\=b" +-- phrase15.out -- +compare = + url + "https://www.google.com/test\\?a=b" diff --git a/testdata/parse/prec.txt b/testdata/parse/prec.txt new file mode 100644 index 0000000..bcbab3f --- /dev/null +++ b/testdata/parse/prec.txt @@ -0,0 +1,9 @@ +# Precedence tests +-- prec1.test -- +a AND b OR c +-- prec1.out -- +conjunction + a + disjunction + b + c diff --git a/testdata/parse/regexp.txt b/testdata/parse/regexp.txt new file mode 100644 index 0000000..e85ab2d --- /dev/null +++ b/testdata/parse/regexp.txt @@ -0,0 +1,137 @@ +# Regexp tests. +-- regexp1.test -- +a=~"b" +-- regexp1.out -- +compare =~ + a + "b" +-- regexp2.test -- +a.b.c=~"b.*c" +-- regexp2.out -- +compare =~ + a.b.c + "b.*c" +-- regexp3.test -- +a.b.c=~"12[a-zA-Z]+x.*(a|b|c)?" +-- regexp3.out -- +compare =~ + a.b.c + "12[a-zA-Z]+x.*(a|b|c)?" +-- regexp4.test -- +a AND b=~"foo.*bar?" AND c AND d.e =~ "baz[^\"]+" +-- regexp4.out -- +conjunction + conjunction + conjunction + a + compare =~ + b + "foo.*bar?" + c + compare =~ + d.e + "baz[^\"]+" +-- regexp5.test -- +a =~ ("foo.*bar" AND ("foo.*baz" OR "foo.*qux")) +-- regexp5.out -- +compare =~ + a + conjunction + "foo.*bar" + disjunction + "foo.*baz" + "foo.*qux" +-- regexp6.test -- +a =~ word +-- regexp6.err -- +1:6: regular expression is not a quoted string +-- regexp7.test -- +a =~ ("foo.*" OR bar) +-- regexp7.err -- +1:18: regular expression is not a quoted string +-- regexp8.test -- +a =~ "(no|closing|parens" +-- regexp8.err -- +1:6: invalid regular expression: error parsing regexp: missing closing ): `(no|closing|parens` +-- regexp9.test -- +a =~ "[no|closing|brace" +-- regexp9.err -- +1:6: invalid regular expression: error parsing regexp: missing closing ]: `[no|closing|brace` +-- regexp10.test -- +a!~"b" +-- regexp10.out -- +compare !~ + a + "b" +-- regexp11.test -- +a.b.c!~"b.*c" +-- regexp11.out -- +compare !~ + a.b.c + "b.*c" +-- regexp12.test -- +a.b.c!~"12[a-zA-Z]+x.*(a|b|c)?" +-- regexp12.out -- +compare !~ + a.b.c + "12[a-zA-Z]+x.*(a|b|c)?" +-- regexp13.test -- +a AND b!~"foo.*bar?" AND c AND d.e !~ "baz[^\"]+" +-- regexp13.out -- +conjunction + conjunction + conjunction + a + compare !~ + b + "foo.*bar?" + c + compare !~ + d.e + "baz[^\"]+" +-- regexp14.test -- +a !~ ("foo.*bar" AND ("foo.*baz" OR "foo.*qux")) +-- regexp14.out -- +compare !~ + a + conjunction + "foo.*bar" + disjunction + "foo.*baz" + "foo.*qux" +-- regexp15.test -- +a !~ word +-- regexp15.err -- +1:6: regular expression is not a quoted string +-- regexp16.test -- +a !~ ("foo.*" OR bar) +-- regexp16.err -- +1:18: regular expression is not a quoted string +-- regexp17.test -- +a !~ "(no|closing|parens" +-- regexp17.err -- +1:6: invalid regular expression: error parsing regexp: missing closing ): `(no|closing|parens` +-- regexp18.test -- +a !~ "[no|closing|brace" +-- regexp18.err -- +1:6: invalid regular expression: error parsing regexp: missing closing ]: `[no|closing|brace` +-- regexp19.test -- +a !~ "(no|closing|parens" +-- regexp19.err -- +1:6: invalid regular expression: error parsing regexp: missing closing ): `(no|closing|parens` +-- regexp20.test -- +a !~ "[no|closing|brace" +-- regexp20.err -- +1:6: invalid regular expression: error parsing regexp: missing closing ]: `[no|closing|brace` +-- regexp21.test -- +a=~"b" +-- regexp21.out -- +compare =~ + a + "b" +-- regexp22.test -- +a!~"b" +-- regexp22.out -- +compare !~ + a + "b" diff --git a/testdata/parse/unicode.txt b/testdata/parse/unicode.txt new file mode 100644 index 0000000..0020c72 --- /dev/null +++ b/testdata/parse/unicode.txt @@ -0,0 +1,59 @@ +# Unicode tests. +-- unicode1.test -- +fờö +-- unicode1.out -- +fờö +-- unicode2.test -- +answer:Да! +-- unicode2.out -- +compare : + answer + Да! +-- unicode3.test -- +metric.label.subject="ac�n" +-- unicode3.out -- +compare = + metric.label.subject + "ac�n" +-- unicode4.test -- +metric.label.subject="ac�n" +-- unicode4.out -- +compare = + metric.label.subject + "ac�n" +-- unicode5.test -- +你好吗 +-- unicode5.out -- +你好吗 +-- unicode6.test -- +"你好吗" +-- unicode6.out -- +"你好吗" +-- unicode7.test -- +"你好吗" +-- unicode7.out -- +"你好吗" +-- unicode8.test -- +🟦 +-- unicode8.out -- +🟦 +-- unicode9.test -- +"🟦" +-- unicode9.out -- +"🟦" +-- unicode10.test -- +"🟦" +-- unicode10.out -- +"🟦" +-- unicode11.test -- +"󠅢" +-- unicode11.out -- +"\u{e0162}" +-- unicode12.test -- +"\777" +-- unicode12.out -- +"?7" +-- unicode13.test -- +"\777" +-- unicode13.out -- +"?7" |
