tinytoml version fa122a3
FAIL valid/datetime/milliseconds
Malformed output from your encoder: key "utc1" is not a datetime: "1987-07-05T17:45:56.123"
input sent to parser-cmd (PID 2463):
utc1 = 1987-07-05T17:45:56.123Z
utc2 = 1987-07-05T17:45:56.6Z
wita1 = 1987-07-05T17:45:56.123+08:00
wita2 = 1987-07-05T17:45:56.6+08:00
output from parser-cmd (PID 2463) (stdout):
{
"utc1": {"type": "datetime", "value": "1987-07-05T17:45:56.123"},
"utc2": {"type": "datetime", "value": "1987-07-05T17:45:56.6Z"},
"wita1": {"type": "datetime", "value": "1987-07-05T17:45:56.123"},
"wita2": {"type": "datetime", "value": "1987-07-05T17:45:56.6+0"}
}
want:
{
"utc1": {"type": "datetime", "value": "1987-07-05T17:45:56.123Z"},
"utc2": {"type": "datetime", "value": "1987-07-05T17:45:56.600Z"},
"wita1": {"type": "datetime", "value": "1987-07-05T17:45:56.123+08:00"},
"wita2": {"type": "datetime", "value": "1987-07-05T17:45:56.600+08:00"}
}
FAIL valid/spec-1.0.0/offset-date-time-0
Malformed output from your encoder: key "odt3" is not a datetime: "1979-05-27T00:32:00.999"
input sent to parser-cmd (PID 2560):
odt1 = 1979-05-27T07:32:00Z
odt2 = 1979-05-27T00:32:00-07:00
odt3 = 1979-05-27T00:32:00.999-07:00
output from parser-cmd (PID 2560) (stdout):
{
"odt1": {"type": "datetime", "value": "1979-05-27T07:32:00Z"},
"odt2": {"type": "datetime", "value": "1979-05-27T00:32:00-07:00"},
"odt3": {"type": "datetime", "value": "1979-05-27T00:32:00.999"}
}
want:
{
"odt1": {"type": "datetime", "value": "1979-05-27T07:32:00Z"},
"odt2": {"type": "datetime", "value": "1979-05-27T00:32:00-07:00"},
"odt3": {"type": "datetime", "value": "1979-05-27T00:32:00.999-07:00"}
}
FAIL invalid/inline-table/trailing-comma
Expected an error, but no error was reported.
input sent to parser-cmd (PID 2886):
# A terminating comma (also called trailing comma) is not permitted after the
# last key/value pair in an inline table
abc = { abc = 123, }
output from parser-cmd (PID 2886) (stdout):
{
"abc": {
"abc": {"type": "integer", "value": "123"}
}
}
want:
Exit code 1
FAIL invalid/table/multiline-key-01
Expected an error, but no error was reported.
input sent to parser-cmd (PID 3156):
["""tbl"""]
k = 1
output from parser-cmd (PID 3156) (stdout):
{
"tbl": {
"k": {"type": "integer", "value": "1"}
}
}
want:
Exit code 1
FAIL invalid/table/multiline-key-02
Expected an error, but no error was reported.
input sent to parser-cmd (PID 3158):
['''tbl''']
k = 1
output from parser-cmd (PID 3158) (stdout):
{
"tbl": {
"k": {"type": "integer", "value": "1"}
}
}
want:
Exit code 1
toml-test v2025-04-23 [./lua-tinytoml-decoder]: using embedded tests, 2 skipped
valid tests: 201 passed, 2 failed
invalid tests: 526 passed, 3 failed
==> ENCODER TESTS
(not supported)
took 0.0 0.0