toml-reader version d37c53f
FAIL valid/spec/table-9
Invalid table key: "fruit.apple.texture"
Table already statically defined at "fruit.apple.texture"
Exit 1
input sent to parser-cmd:
[fruit]
apple.color = "red"
apple.taste.sweet = true
# [fruit.apple] # INVALID
# [fruit.apple.taste] # INVALID
[fruit.apple.texture] # you can add sub-tables
smooth = true
output from parser-cmd (stderr):
Invalid table key: "fruit.apple.texture"
Table already statically defined at "fruit.apple.texture"
Exit 1
want:
FAIL valid/table/array-within-dotted
Invalid table key: "fruit.apple.seeds"
Table already statically defined at "fruit.apple.seeds"
Exit 1
input sent to parser-cmd:
[fruit]
apple.color = "red"
[[fruit.apple.seeds]]
size = 2
output from parser-cmd (stderr):
Invalid table key: "fruit.apple.seeds"
Table already statically defined at "fruit.apple.seeds"
Exit 1
want:
FAIL invalid/array/extend-defined-aot
Expected an error, but no error was reported.
input sent to parser-cmd:
[[tab.arr]]
[tab]
arr.val1=1
output from parser-cmd (stdout):
{
"tab": {
"arr": [
{
"val1": {
"type": "integer",
"value": "1"
}
}
]
}
}
want:
Exit code 1
FAIL invalid/table/append-to-array-with-dotted-keys
Expected an error, but no error was reported.
input sent to parser-cmd:
[[a.b]]
[a]
b.y = 2
output from parser-cmd (stdout):
{
"a": {
"b": [
{
"y": {
"type": "integer",
"value": "2"
}
}
]
}
}
want:
Exit code 1
toml-test v2023-12-07 [./src/haskell-toml-reader/parser-validator --check]: using embedded tests
valid tests: 177 passed, 2 failed
invalid tests: 366 passed, 2 failed
==> ENCODER TESTS
(not supported)
took 6.6 1.40