Updated tests from BurntSushi/toml-test

This commit is contained in:
moandji.ezana 2014-12-15 13:01:17 +02:00
parent 1390487d3f
commit 28ef345bba
5 changed files with 8 additions and 9 deletions

View file

@ -1 +1 @@
ints-and-floats = [1, 1.0]
ints-and-floats = [1, 1.1]

View file

@ -11,8 +11,8 @@
{"type": "string", "value": "b"}
]},
{"type": "array", "value": [
{"type": "float", "value": "1.0"},
{"type": "float", "value": "2.0"}
{"type": "float", "value": "1.1"},
{"type": "float", "value": "2.1"}
]}
]
}

View file

@ -1 +1 @@
mixed = [[1, 2], ["a", "b"], [1.0, 2.0]]
mixed = [[1, 2], ["a", "b"], [1.1, 2.1]]

View file

@ -10,9 +10,9 @@
"floats": {
"type": "array",
"value": [
{"type": "float", "value": "1.0"},
{"type": "float", "value": "2.0"},
{"type": "float", "value": "3.0"}
{"type": "float", "value": "1.1"},
{"type": "float", "value": "2.1"},
{"type": "float", "value": "3.1"}
]
},
"strings": {

View file

@ -1,9 +1,8 @@
ints = [1, 2, 3]
floats = [1.0, 2.0, 3.0]
floats = [1.1, 2.1, 3.1]
strings = ["a", "b", "c"]
dates = [
1987-07-05T17:45:00Z,
1979-05-27T07:32:00Z,
2006-06-01T11:00:00Z,
]