diff options
author | Alex Crichton <alex@alexcrichton.com> | 2014-06-20 17:01:38 -0700 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2014-06-20 17:01:38 -0700 |
commit | 11115f13a3499420cd09b745a298ef071755b24b (patch) | |
tree | ea24118086e8a1f814c4cd9b2f617c93fe107754 /src/test/valid | |
download | milf-rs-11115f13a3499420cd09b745a298ef071755b24b.tar.gz milf-rs-11115f13a3499420cd09b745a298ef071755b24b.zip |
Initial commit
Diffstat (limited to 'src/test/valid')
66 files changed, 413 insertions, 0 deletions
diff --git a/src/test/valid/array-empty.json b/src/test/valid/array-empty.json new file mode 100644 index 0000000..2fbf256 --- /dev/null +++ b/src/test/valid/array-empty.json @@ -0,0 +1,11 @@ +{ + "thevoid": { "type": "array", "value": [ + {"type": "array", "value": [ + {"type": "array", "value": [ + {"type": "array", "value": [ + {"type": "array", "value": []} + ]} + ]} + ]} + ]} +} diff --git a/src/test/valid/array-empty.toml b/src/test/valid/array-empty.toml new file mode 100644 index 0000000..fa58dc6 --- /dev/null +++ b/src/test/valid/array-empty.toml @@ -0,0 +1 @@ +thevoid = [[[[[]]]]] diff --git a/src/test/valid/array-nospaces.json b/src/test/valid/array-nospaces.json new file mode 100644 index 0000000..1833d61 --- /dev/null +++ b/src/test/valid/array-nospaces.json @@ -0,0 +1,10 @@ +{ + "ints": { + "type": "array", + "value": [ + {"type": "integer", "value": "1"}, + {"type": "integer", "value": "2"}, + {"type": "integer", "value": "3"} + ] + } +} diff --git a/src/test/valid/array-nospaces.toml b/src/test/valid/array-nospaces.toml new file mode 100644 index 0000000..6618936 --- /dev/null +++ b/src/test/valid/array-nospaces.toml @@ -0,0 +1 @@ +ints = [1,2,3] diff --git a/src/test/valid/arrays-hetergeneous.json b/src/test/valid/arrays-hetergeneous.json new file mode 100644 index 0000000..e703739 --- /dev/null +++ b/src/test/valid/arrays-hetergeneous.json @@ -0,0 +1,19 @@ +{ + "mixed": { + "type": "array", + "value": [ + {"type": "array", "value": [ + {"type": "integer", "value": "1"}, + {"type": "integer", "value": "2"} + ]}, + {"type": "array", "value": [ + {"type": "string", "value": "a"}, + {"type": "string", "value": "b"} + ]}, + {"type": "array", "value": [ + {"type": "float", "value": "1.0"}, + {"type": "float", "value": "2.0"} + ]} + ] + } +} diff --git a/src/test/valid/arrays-hetergeneous.toml b/src/test/valid/arrays-hetergeneous.toml new file mode 100644 index 0000000..91fcbdf --- /dev/null +++ b/src/test/valid/arrays-hetergeneous.toml @@ -0,0 +1 @@ +mixed = [[1, 2], ["a", "b"], [1.0, 2.0]] diff --git a/src/test/valid/arrays-nested.json b/src/test/valid/arrays-nested.json new file mode 100644 index 0000000..d21920c --- /dev/null +++ b/src/test/valid/arrays-nested.json @@ -0,0 +1,13 @@ +{ + "nest": { + "type": "array", + "value": [ + {"type": "array", "value": [ + {"type": "string", "value": "a"} + ]}, + {"type": "array", "value": [ + {"type": "string", "value": "b"} + ]} + ] + } +} diff --git a/src/test/valid/arrays-nested.toml b/src/test/valid/arrays-nested.toml new file mode 100644 index 0000000..ce33022 --- /dev/null +++ b/src/test/valid/arrays-nested.toml @@ -0,0 +1 @@ +nest = [["a"], ["b"]] diff --git a/src/test/valid/arrays.json b/src/test/valid/arrays.json new file mode 100644 index 0000000..4d16d8a --- /dev/null +++ b/src/test/valid/arrays.json @@ -0,0 +1,34 @@ +{ + "ints": { + "type": "array", + "value": [ + {"type": "integer", "value": "1"}, + {"type": "integer", "value": "2"}, + {"type": "integer", "value": "3"} + ] + }, + "floats": { + "type": "array", + "value": [ + {"type": "float", "value": "1.0"}, + {"type": "float", "value": "2.0"}, + {"type": "float", "value": "3.0"} + ] + }, + "strings": { + "type": "array", + "value": [ + {"type": "string", "value": "a"}, + {"type": "string", "value": "b"}, + {"type": "string", "value": "c"} + ] + }, + "dates": { + "type": "array", + "value": [ + {"type": "datetime", "value": "1987-07-05T17:45:00Z"}, + {"type": "datetime", "value": "1979-05-27T07:32:00Z"}, + {"type": "datetime", "value": "2006-06-01T11:00:00Z"} + ] + } +} diff --git a/src/test/valid/arrays.toml b/src/test/valid/arrays.toml new file mode 100644 index 0000000..6d6440d --- /dev/null +++ b/src/test/valid/arrays.toml @@ -0,0 +1,9 @@ +ints = [1, 2, 3] +floats = [1.0, 2.0, 3.0] +strings = ["a", "b", "c"] +dates = [ + 1987-07-05T17:45:00Z, + 1979-05-27T07:32:00Z, + 2006-06-01T11:00:00Z, +] + diff --git a/src/test/valid/bool.json b/src/test/valid/bool.json new file mode 100644 index 0000000..ae368e9 --- /dev/null +++ b/src/test/valid/bool.json @@ -0,0 +1,4 @@ +{ + "f": {"type": "bool", "value": "false"}, + "t": {"type": "bool", "value": "true"} +} diff --git a/src/test/valid/bool.toml b/src/test/valid/bool.toml new file mode 100644 index 0000000..a8a829b --- /dev/null +++ b/src/test/valid/bool.toml @@ -0,0 +1,2 @@ +t = true +f = false diff --git a/src/test/valid/comments-everywhere.json b/src/test/valid/comments-everywhere.json new file mode 100644 index 0000000..e69a2e9 --- /dev/null +++ b/src/test/valid/comments-everywhere.json @@ -0,0 +1,12 @@ +{ + "group": { + "answer": {"type": "integer", "value": "42"}, + "more": { + "type": "array", + "value": [ + {"type": "integer", "value": "42"}, + {"type": "integer", "value": "42"} + ] + } + } +} diff --git a/src/test/valid/comments-everywhere.toml b/src/test/valid/comments-everywhere.toml new file mode 100644 index 0000000..3dca74c --- /dev/null +++ b/src/test/valid/comments-everywhere.toml @@ -0,0 +1,24 @@ +# Top comment. + # Top comment. +# Top comment. + +# [no-extraneous-groups-please] + +[group] # Comment +answer = 42 # Comment +# no-extraneous-keys-please = 999 +# Inbetween comment. +more = [ # Comment + # What about multiple # comments? + # Can you handle it? + # + # Evil. +# Evil. + 42, 42, # Comments within arrays are fun. + # What about multiple # comments? + # Can you handle it? + # + # Evil. +# Evil. +# ] Did I fool you? +] # Hopefully not. diff --git a/src/test/valid/datetime.json b/src/test/valid/datetime.json new file mode 100644 index 0000000..2ca93ce --- /dev/null +++ b/src/test/valid/datetime.json @@ -0,0 +1,3 @@ +{ + "bestdayever": {"type": "datetime", "value": "1987-07-05T17:45:00Z"} +} diff --git a/src/test/valid/datetime.toml b/src/test/valid/datetime.toml new file mode 100644 index 0000000..2e99340 --- /dev/null +++ b/src/test/valid/datetime.toml @@ -0,0 +1 @@ +bestdayever = 1987-07-05T17:45:00Z diff --git a/src/test/valid/empty.json b/src/test/valid/empty.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/src/test/valid/empty.json @@ -0,0 +1 @@ +{} diff --git a/src/test/valid/empty.toml b/src/test/valid/empty.toml new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/test/valid/empty.toml diff --git a/src/test/valid/example.json b/src/test/valid/example.json new file mode 100644 index 0000000..48aa907 --- /dev/null +++ b/src/test/valid/example.json @@ -0,0 +1,14 @@ +{ + "best-day-ever": {"type": "datetime", "value": "1987-07-05T17:45:00Z"}, + "numtheory": { + "boring": {"type": "bool", "value": "false"}, + "perfection": { + "type": "array", + "value": [ + {"type": "integer", "value": "6"}, + {"type": "integer", "value": "28"}, + {"type": "integer", "value": "496"} + ] + } + } +} diff --git a/src/test/valid/example.toml b/src/test/valid/example.toml new file mode 100644 index 0000000..8cb02e0 --- /dev/null +++ b/src/test/valid/example.toml @@ -0,0 +1,5 @@ +best-day-ever = 1987-07-05T17:45:00Z + +[numtheory] +boring = false +perfection = [6, 28, 496] diff --git a/src/test/valid/float.json b/src/test/valid/float.json new file mode 100644 index 0000000..b8a2e97 --- /dev/null +++ b/src/test/valid/float.json @@ -0,0 +1,4 @@ +{ + "pi": {"type": "float", "value": "3.14"}, + "negpi": {"type": "float", "value": "-3.14"} +} diff --git a/src/test/valid/float.toml b/src/test/valid/float.toml new file mode 100644 index 0000000..7c528d2 --- /dev/null +++ b/src/test/valid/float.toml @@ -0,0 +1,2 @@ +pi = 3.14 +negpi = -3.14 diff --git a/src/test/valid/implicit-and-explicit-after.json b/src/test/valid/implicit-and-explicit-after.json new file mode 100644 index 0000000..374bd09 --- /dev/null +++ b/src/test/valid/implicit-and-explicit-after.json @@ -0,0 +1,10 @@ +{ + "a": { + "better": {"type": "integer", "value": "43"}, + "b": { + "c": { + "answer": {"type": "integer", "value": "42"} + } + } + } +} diff --git a/src/test/valid/implicit-and-explicit-after.toml b/src/test/valid/implicit-and-explicit-after.toml new file mode 100644 index 0000000..c0e8865 --- /dev/null +++ b/src/test/valid/implicit-and-explicit-after.toml @@ -0,0 +1,5 @@ +[a.b.c] +answer = 42 + +[a] +better = 43 diff --git a/src/test/valid/implicit-and-explicit-before.json b/src/test/valid/implicit-and-explicit-before.json new file mode 100644 index 0000000..374bd09 --- /dev/null +++ b/src/test/valid/implicit-and-explicit-before.json @@ -0,0 +1,10 @@ +{ + "a": { + "better": {"type": "integer", "value": "43"}, + "b": { + "c": { + "answer": {"type": "integer", "value": "42"} + } + } + } +} diff --git a/src/test/valid/implicit-and-explicit-before.toml b/src/test/valid/implicit-and-explicit-before.toml new file mode 100644 index 0000000..eee68ff --- /dev/null +++ b/src/test/valid/implicit-and-explicit-before.toml @@ -0,0 +1,5 @@ +[a] +better = 43 + +[a.b.c] +answer = 42 diff --git a/src/test/valid/implicit-groups.json b/src/test/valid/implicit-groups.json new file mode 100644 index 0000000..fbae7fc --- /dev/null +++ b/src/test/valid/implicit-groups.json @@ -0,0 +1,9 @@ +{ + "a": { + "b": { + "c": { + "answer": {"type": "integer", "value": "42"} + } + } + } +} diff --git a/src/test/valid/implicit-groups.toml b/src/test/valid/implicit-groups.toml new file mode 100644 index 0000000..b6333e4 --- /dev/null +++ b/src/test/valid/implicit-groups.toml @@ -0,0 +1,2 @@ +[a.b.c] +answer = 42 diff --git a/src/test/valid/integer.json b/src/test/valid/integer.json new file mode 100644 index 0000000..61985a1 --- /dev/null +++ b/src/test/valid/integer.json @@ -0,0 +1,4 @@ +{ + "answer": {"type": "integer", "value": "42"}, + "neganswer": {"type": "integer", "value": "-42"} +} diff --git a/src/test/valid/integer.toml b/src/test/valid/integer.toml new file mode 100644 index 0000000..c4f6297 --- /dev/null +++ b/src/test/valid/integer.toml @@ -0,0 +1,2 @@ +answer = 42 +neganswer = -42 diff --git a/src/test/valid/key-equals-nospace.json b/src/test/valid/key-equals-nospace.json new file mode 100644 index 0000000..1f8709a --- /dev/null +++ b/src/test/valid/key-equals-nospace.json @@ -0,0 +1,3 @@ +{ + "answer": {"type": "integer", "value": "42"} +} diff --git a/src/test/valid/key-equals-nospace.toml b/src/test/valid/key-equals-nospace.toml new file mode 100644 index 0000000..560901c --- /dev/null +++ b/src/test/valid/key-equals-nospace.toml @@ -0,0 +1 @@ +answer=42 diff --git a/src/test/valid/key-special-chars.json b/src/test/valid/key-special-chars.json new file mode 100644 index 0000000..6550ebd --- /dev/null +++ b/src/test/valid/key-special-chars.json @@ -0,0 +1,5 @@ +{ + "~!@#$^&*()_+-`1234567890[]\\|/?><.,;:'": { + "type": "integer", "value": "1" + } +} diff --git a/src/test/valid/key-special-chars.toml b/src/test/valid/key-special-chars.toml new file mode 100644 index 0000000..8b3fc51 --- /dev/null +++ b/src/test/valid/key-special-chars.toml @@ -0,0 +1 @@ +~!@#$^&*()_+-`1234567890[]\|/?><.,;:' = 1 diff --git a/src/test/valid/key-with-pound.json b/src/test/valid/key-with-pound.json new file mode 100644 index 0000000..ee39e1d --- /dev/null +++ b/src/test/valid/key-with-pound.json @@ -0,0 +1,3 @@ +{ + "key#name": {"type": "integer", "value": "5"} +} diff --git a/src/test/valid/key-with-pound.toml b/src/test/valid/key-with-pound.toml new file mode 100644 index 0000000..1c54f53 --- /dev/null +++ b/src/test/valid/key-with-pound.toml @@ -0,0 +1 @@ +key#name = 5 diff --git a/src/test/valid/long-float.json b/src/test/valid/long-float.json new file mode 100644 index 0000000..8ceed47 --- /dev/null +++ b/src/test/valid/long-float.json @@ -0,0 +1,4 @@ +{ + "longpi": {"type": "float", "value": "3.141592653589793"}, + "neglongpi": {"type": "float", "value": "-3.141592653589793"} +} diff --git a/src/test/valid/long-float.toml b/src/test/valid/long-float.toml new file mode 100644 index 0000000..9558ae4 --- /dev/null +++ b/src/test/valid/long-float.toml @@ -0,0 +1,2 @@ +longpi = 3.141592653589793 +neglongpi = -3.141592653589793 diff --git a/src/test/valid/long-integer.json b/src/test/valid/long-integer.json new file mode 100644 index 0000000..16c331e --- /dev/null +++ b/src/test/valid/long-integer.json @@ -0,0 +1,4 @@ +{ + "answer": {"type": "integer", "value": "9223372036854775807"}, + "neganswer": {"type": "integer", "value": "-9223372036854775808"} +} diff --git a/src/test/valid/long-integer.toml b/src/test/valid/long-integer.toml new file mode 100644 index 0000000..424a13a --- /dev/null +++ b/src/test/valid/long-integer.toml @@ -0,0 +1,2 @@ +answer = 9223372036854775807 +neganswer = -9223372036854775808 diff --git a/src/test/valid/string-escapes.json b/src/test/valid/string-escapes.json new file mode 100644 index 0000000..ca71d30 --- /dev/null +++ b/src/test/valid/string-escapes.json @@ -0,0 +1,34 @@ +{ + "backspace": { + "type": "string", + "value": "This string has a \u0008 backspace character." + }, + "tab": { + "type": "string", + "value": "This string has a \u0009 tab character." + }, + "newline": { + "type": "string", + "value": "This string has a \u000A new line character." + }, + "formfeed": { + "type": "string", + "value": "This string has a \u000C form feed character." + }, + "carriage": { + "type": "string", + "value": "This string has a \u000D carriage return character." + }, + "quote": { + "type": "string", + "value": "This string has a \u0022 quote character." + }, + "slash": { + "type": "string", + "value": "This string has a \u002F slash character." + }, + "backslash": { + "type": "string", + "value": "This string has a \u005C backslash character." + } +} diff --git a/src/test/valid/string-escapes.toml b/src/test/valid/string-escapes.toml new file mode 100644 index 0000000..2d64500 --- /dev/null +++ b/src/test/valid/string-escapes.toml @@ -0,0 +1,8 @@ +backspace = "This string has a \b backspace character." +tab = "This string has a \t tab character." +newline = "This string has a \n new line character." +formfeed = "This string has a \f form feed character." +carriage = "This string has a \r carriage return character." +quote = "This string has a \" quote character." +slash = "This string has a \/ slash character." +backslash = "This string has a \\ backslash character." diff --git a/src/test/valid/string-simple.json b/src/test/valid/string-simple.json new file mode 100644 index 0000000..2e05f99 --- /dev/null +++ b/src/test/valid/string-simple.json @@ -0,0 +1,6 @@ +{ + "answer": { + "type": "string", + "value": "You are not drinking enough whisky." + } +} diff --git a/src/test/valid/string-simple.toml b/src/test/valid/string-simple.toml new file mode 100644 index 0000000..e17ade6 --- /dev/null +++ b/src/test/valid/string-simple.toml @@ -0,0 +1 @@ +answer = "You are not drinking enough whisky." diff --git a/src/test/valid/string-with-pound.json b/src/test/valid/string-with-pound.json new file mode 100644 index 0000000..33cdc9c --- /dev/null +++ b/src/test/valid/string-with-pound.json @@ -0,0 +1,7 @@ +{ + "pound": {"type": "string", "value": "We see no # comments here."}, + "poundcomment": { + "type": "string", + "value": "But there are # some comments here." + } +} diff --git a/src/test/valid/string-with-pound.toml b/src/test/valid/string-with-pound.toml new file mode 100644 index 0000000..5fd8746 --- /dev/null +++ b/src/test/valid/string-with-pound.toml @@ -0,0 +1,2 @@ +pound = "We see no # comments here." +poundcomment = "But there are # some comments here." # Did I # mess you up? diff --git a/src/test/valid/table-array-implicit.json b/src/test/valid/table-array-implicit.json new file mode 100644 index 0000000..32e4640 --- /dev/null +++ b/src/test/valid/table-array-implicit.json @@ -0,0 +1,7 @@ +{ + "albums": { + "songs": [ + {"name": {"type": "string", "value": "Glory Days"}} + ] + } +} diff --git a/src/test/valid/table-array-implicit.toml b/src/test/valid/table-array-implicit.toml new file mode 100644 index 0000000..3157ac9 --- /dev/null +++ b/src/test/valid/table-array-implicit.toml @@ -0,0 +1,2 @@ +[[albums.songs]] +name = "Glory Days" diff --git a/src/test/valid/table-array-many.json b/src/test/valid/table-array-many.json new file mode 100644 index 0000000..84df2da --- /dev/null +++ b/src/test/valid/table-array-many.json @@ -0,0 +1,16 @@ +{ + "people": [ + { + "first_name": {"type": "string", "value": "Bruce"}, + "last_name": {"type": "string", "value": "Springsteen"} + }, + { + "first_name": {"type": "string", "value": "Eric"}, + "last_name": {"type": "string", "value": "Clapton"} + }, + { + "first_name": {"type": "string", "value": "Bob"}, + "last_name": {"type": "string", "value": "Seger"} + } + ] +} diff --git a/src/test/valid/table-array-many.toml b/src/test/valid/table-array-many.toml new file mode 100644 index 0000000..46062be --- /dev/null +++ b/src/test/valid/table-array-many.toml @@ -0,0 +1,11 @@ +[[people]] +first_name = "Bruce" +last_name = "Springsteen" + +[[people]] +first_name = "Eric" +last_name = "Clapton" + +[[people]] +first_name = "Bob" +last_name = "Seger" diff --git a/src/test/valid/table-array-nest.json b/src/test/valid/table-array-nest.json new file mode 100644 index 0000000..c117afa --- /dev/null +++ b/src/test/valid/table-array-nest.json @@ -0,0 +1,18 @@ +{ + "albums": [ + { + "name": {"type": "string", "value": "Born to Run"}, + "songs": [ + {"name": {"type": "string", "value": "Jungleland"}}, + {"name": {"type": "string", "value": "Meeting Across the River"}} + ] + }, + { + "name": {"type": "string", "value": "Born in the USA"}, + "songs": [ + {"name": {"type": "string", "value": "Glory Days"}}, + {"name": {"type": "string", "value": "Dancing in the Dark"}} + ] + } + ] +} diff --git a/src/test/valid/table-array-nest.toml b/src/test/valid/table-array-nest.toml new file mode 100644 index 0000000..d659a3d --- /dev/null +++ b/src/test/valid/table-array-nest.toml @@ -0,0 +1,17 @@ +[[albums]] +name = "Born to Run" + + [[albums.songs]] + name = "Jungleland" + + [[albums.songs]] + name = "Meeting Across the River" + +[[albums]] +name = "Born in the USA" + + [[albums.songs]] + name = "Glory Days" + + [[albums.songs]] + name = "Dancing in the Dark" diff --git a/src/test/valid/table-array-one.json b/src/test/valid/table-array-one.json new file mode 100644 index 0000000..d75faae --- /dev/null +++ b/src/test/valid/table-array-one.json @@ -0,0 +1,8 @@ +{ + "people": [ + { + "first_name": {"type": "string", "value": "Bruce"}, + "last_name": {"type": "string", "value": "Springsteen"} + } + ] +} diff --git a/src/test/valid/table-array-one.toml b/src/test/valid/table-array-one.toml new file mode 100644 index 0000000..cd7e1b6 --- /dev/null +++ b/src/test/valid/table-array-one.toml @@ -0,0 +1,3 @@ +[[people]] +first_name = "Bruce" +last_name = "Springsteen" diff --git a/src/test/valid/table-empty.json b/src/test/valid/table-empty.json new file mode 100644 index 0000000..6f3873a --- /dev/null +++ b/src/test/valid/table-empty.json @@ -0,0 +1,3 @@ +{ + "a": {} +} diff --git a/src/test/valid/table-empty.toml b/src/test/valid/table-empty.toml new file mode 100644 index 0000000..8bb6a0a --- /dev/null +++ b/src/test/valid/table-empty.toml @@ -0,0 +1 @@ +[a] diff --git a/src/test/valid/table-sub-empty.json b/src/test/valid/table-sub-empty.json new file mode 100644 index 0000000..9787770 --- /dev/null +++ b/src/test/valid/table-sub-empty.json @@ -0,0 +1,3 @@ +{ + "a": { "b": {} } +} diff --git a/src/test/valid/table-sub-empty.toml b/src/test/valid/table-sub-empty.toml new file mode 100644 index 0000000..70b7fe1 --- /dev/null +++ b/src/test/valid/table-sub-empty.toml @@ -0,0 +1,2 @@ +[a] +[a.b] diff --git a/src/test/valid/table-whitespace.json b/src/test/valid/table-whitespace.json new file mode 100644 index 0000000..3a73ec8 --- /dev/null +++ b/src/test/valid/table-whitespace.json @@ -0,0 +1,3 @@ +{ + "valid key": {} +} diff --git a/src/test/valid/table-whitespace.toml b/src/test/valid/table-whitespace.toml new file mode 100644 index 0000000..798756c --- /dev/null +++ b/src/test/valid/table-whitespace.toml @@ -0,0 +1 @@ +[valid key] diff --git a/src/test/valid/table-with-pound.json b/src/test/valid/table-with-pound.json new file mode 100644 index 0000000..5e594e4 --- /dev/null +++ b/src/test/valid/table-with-pound.json @@ -0,0 +1,5 @@ +{ + "key#group": { + "answer": {"type": "integer", "value": "42"} + } +} diff --git a/src/test/valid/table-with-pound.toml b/src/test/valid/table-with-pound.toml new file mode 100644 index 0000000..e7b777e --- /dev/null +++ b/src/test/valid/table-with-pound.toml @@ -0,0 +1,2 @@ +[key#group] +answer = 42 diff --git a/src/test/valid/unicode-escape.json b/src/test/valid/unicode-escape.json new file mode 100644 index 0000000..deda62c --- /dev/null +++ b/src/test/valid/unicode-escape.json @@ -0,0 +1,3 @@ +{ + "answer": {"type": "string", "value": "\u03B4"} +} diff --git a/src/test/valid/unicode-escape.toml b/src/test/valid/unicode-escape.toml new file mode 100644 index 0000000..057ce15 --- /dev/null +++ b/src/test/valid/unicode-escape.toml @@ -0,0 +1 @@ +answer = "\u03B4" diff --git a/src/test/valid/unicode-literal.json b/src/test/valid/unicode-literal.json new file mode 100644 index 0000000..00aa2f8 --- /dev/null +++ b/src/test/valid/unicode-literal.json @@ -0,0 +1,3 @@ +{ + "answer": {"type": "string", "value": "δ"} +} diff --git a/src/test/valid/unicode-literal.toml b/src/test/valid/unicode-literal.toml new file mode 100644 index 0000000..c65723c --- /dev/null +++ b/src/test/valid/unicode-literal.toml @@ -0,0 +1 @@ +answer = "δ" |