perfect_toml version 1232974
FAIL invalid/control/multi-cr
Expected an error, but no error was reported.
input sent to parser-cmd (PID 10722):
multi-cr = """null
"""
output from parser-cmd (PID 10722) (stdout):
{
"multi-cr": {"type": "string", "value": "null\r"}
}
want:
Exit code 1
FAIL invalid/control/rawmulti-cr
Expected an error, but no error was reported.
input sent to parser-cmd (PID 10744):
rawmulti-cr = '''null
'''
output from parser-cmd (PID 10744) (stdout):
{
"rawmulti-cr": {"type": "string", "value": "null\r"}
}
want:
Exit code 1
FAIL invalid/datetime/feb-29
Expected an error, but no error was reported.
input sent to parser-cmd (PID 10777):
"not a leap year" = 2100-02-29T15:15:15Z
output from parser-cmd (PID 10777) (stdout):
{
"not a leap year": {"type": "datetime", "value": "2100-03-01T15:15:15Z"}
}
want:
Exit code 1
FAIL invalid/datetime/feb-30
Expected an error, but no error was reported.
input sent to parser-cmd (PID 10778):
"only 28 or 29 days in february" = 1988-02-30T15:15:15Z
output from parser-cmd (PID 10778) (stdout):
{
"only 28 or 29 days in february": {"type": "datetime", "value": "1988-03-01T15:15:15Z"}
}
want:
Exit code 1
FAIL invalid/local-date/feb-29
Expected an error, but no error was reported.
input sent to parser-cmd (PID 11285):
"not a leap year" = 2100-02-29
output from parser-cmd (PID 11285) (stdout):
{
"not a leap year": {"type": "date-local", "value": "2100-02-29"}
}
want:
Exit code 1
FAIL invalid/local-date/feb-30
Expected an error, but no error was reported.
input sent to parser-cmd (PID 11286):
"only 28 or 29 days in february" = 1988-02-30
output from parser-cmd (PID 11286) (stdout):
{
"only 28 or 29 days in february": {"type": "date-local", "value": "1988-02-30"}
}
want:
Exit code 1
FAIL invalid/local-datetime/feb-29
Expected an error, but no error was reported.
input sent to parser-cmd (PID 11309):
"not a leap year" = 2100-02-29T15:15:15
output from parser-cmd (PID 11309) (stdout):
{
"not a leap year": {"type": "datetime-local", "value": "2100-02-29T15:15:15"}
}
want:
Exit code 1
FAIL invalid/local-datetime/feb-30
Expected an error, but no error was reported.
input sent to parser-cmd (PID 11312):
"only 28 or 29 days in february" = 1988-02-30T15:15:15
output from parser-cmd (PID 11312) (stdout):
{
"only 28 or 29 days in february": {"type": "datetime-local", "value": "1988-02-30T15:15:15"}
}
want:
Exit code 1
FAIL invalid/local-time/hour-over
Expected an error, but no error was reported.
input sent to parser-cmd (PID 11342):
# time-hour = 2DIGIT ; 00-23
d = 24:00:00
output from parser-cmd (PID 11342) (stdout):
{
"d": {"type": "time-local", "value": "24:00:00"}
}
want:
Exit code 1
toml-test v2025-04-23 [./tool/decoder.rb]: using embedded tests
valid tests: 205 passed, 0 failed
invalid tests: 520 passed, 9 failed
==> ENCODER TESTS
FAIL valid/inline-table/array-02
Could not find key "a" in encoder output
input sent to parser-cmd (PID 11809):
{
"a": {"a": []}
}
output from parser-cmd (PID 11809) (stdout):
want:
# "No newlines are allowed between the curly braces unless they are valid within
# a value"
a = { a = [
]}
toml-test v2025-04-23 [./tool/encoder.rb]: using embedded tests
encoder tests: 204 passed, 1 failed
took 1.3 0.44