Add some tests
This commit is contained in:
57
test/testdata/valid
vendored
Normal file
57
test/testdata/valid
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
[""]
|
||||
========
|
||||
["a"]
|
||||
========
|
||||
["abcdefghijklmnopqrstuvwxyz1234567890 "]
|
||||
========
|
||||
["€þıœəßð some utf-8 ĸʒ×ŋµåäö"]
|
||||
========
|
||||
["\"\\\/\b\f\n\r\t"]
|
||||
========
|
||||
[0]
|
||||
========
|
||||
[1]
|
||||
========
|
||||
[123]
|
||||
========
|
||||
[-0]
|
||||
========
|
||||
[-1]
|
||||
========
|
||||
[-123]
|
||||
========
|
||||
[123.456789]
|
||||
========
|
||||
[123e45]
|
||||
========
|
||||
[1E22]
|
||||
========
|
||||
[1e+2]
|
||||
========
|
||||
[1e-2]
|
||||
========
|
||||
[1E+2]
|
||||
========
|
||||
[1E-2]
|
||||
========
|
||||
[123.456e78]
|
||||
========
|
||||
[true]
|
||||
========
|
||||
[false]
|
||||
========
|
||||
[null]
|
||||
========
|
||||
[]
|
||||
========
|
||||
[{}]
|
||||
========
|
||||
[1,2,3,4,
|
||||
"a", "b", "c",
|
||||
{"foo": "bar", "core": "dump"},
|
||||
true, false, true, true, null, false
|
||||
]
|
||||
========
|
||||
{}
|
||||
========
|
||||
{"a":[]}
|
||||
Reference in New Issue
Block a user