Add some tests

This commit is contained in:
Petri Lehtinen
2009-07-09 21:01:40 +03:00
parent 6b14df13cc
commit 8ef778c843
15 changed files with 487 additions and 1 deletions

57
test/testdata/valid vendored Normal file
View 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":[]}