taplo version 0.13.2
FAIL valid/comment/nonascii
Error: Error { message: "invalid character in comment (4..4)\n" }
Exit 1
input sent to parser-cmd:
# ~ ÿ 𐀀
output from parser-cmd (stderr):
Error: Error { message: "invalid character in comment (4..4)\n" }
Exit 1
want:
FAIL valid/datetime/edge
Error: Error { message: "expected value (15..25)\nexpected new line (26..34)\nexpected new line (34..35)\nexpected value (51..61)\nexpected new line (62..70)\nexpected value (86..96)\n" }
Exit 1
input sent to parser-cmd:
first-offset = 0001-01-01 00:00:00Z
first-local = 0001-01-01 00:00:00
first-date = 0001-01-01
last-offset = 9999-12-31 23:59:59Z
last-local = 9999-12-31 23:59:59
last-date = 9999-12-31
output from parser-cmd (stderr):
Error: Error { message: "expected value (15..25)\nexpected new line (26..34)\nexpected new line (34..35)\nexpected value (51..61)\nexpected new line (62..70)\nexpected value (86..96)\n" }
Exit 1
want:
FAIL valid/key/like-date
Error: Error { message: "expected identifier (361..371)\nexpected identifier (371..372)\nexpected new line (372..382)\nexpected new line (383..384)\nexpected new line (385..386)\nexpected identifier (387..397)\nexpected identifier (397..398)\nexpected new line (398..399)\nexpected new line (399..400)\nexpected new line (400..410)\nexpected new line (411..412)\nexpected new line (413..414)\nexpected identifier (431..441)\nexpected identifier (441..442)\nexpected identifier (452..462)\nexpected identifier (462..463)\nexpected new line (463..473)\nexpected new line (473..474)\nexpected identifier (485..495)\nexpected identifier (495..496)\n" }
Exit 1
input sent to parser-cmd:
# '-' is a valid character in keys: make a key that looks like a date.
2001-02-03 = 1
"2001-02-04" = 2
'2001-02-05' = 3
# Also include datetime and time for good measure; these need to be quoted as
# ':' isn't a valid bare key.
"2001-02-06T15:16:17+01:00" = 4
"2001-02-07T15:16:17" = 5
"15:16:17" = 6
# Dotted keys
a.2001-02-08 = 7
a.2001-02-09.2001-02-10 = 8
2001-02-11.a.2001-02-12 = 9
# Table names
[2002-01-02]
k = 10
[2002-01-02.2024-01-03]
k = 11
[[2002-01-04]]
k = 12
output from parser-cmd (stderr):
Error: Error { message: "expected identifier (361..371)\nexpected identifier (371..372)\nexpected new line (372..382)\nexpected new line (383..384)\nexpected new line (385..386)\nexpected identifier (387..397)\nexpected identifier (397..398)\nexpected new line (398..399)\nexpected new line (399..400)\nexpected new line (400..410)\nexpected new line (411..412)\nexpected new line (413..414)\nexpected identifier (431..441)\nexpected identifier (441..442)\nexpected identifier (452..462)\nexpected identifier (462..463)\nexpected new line (463..473)\nexpected new line (473..474)\nexpected identifier (485..495)\nexpected identifier (495..496)\n" }
Exit 1
want:
FAIL valid/key/numeric-04
Error: Error { message: "zero-padded numbers are not allowed (0..5)\nexpected identifier (6..7)\nexpected new line (8..12)\n" }
Exit 1
input sent to parser-cmd:
01.23 = true
output from parser-cmd (stderr):
Error: Error { message: "zero-padded numbers are not allowed (0..5)\nexpected identifier (6..7)\nexpected new line (8..12)\n" }
Exit 1
want:
FAIL valid/key/quoted-unicode
Error: Error { message: "invalid control character in string literal (205..205)\n" }
Exit 1
input sent to parser-cmd:
"\u0000" = "null"
'\u0000' = "different key"
"\u0008 \u000c \U00000041 \u007f \u0080 \u00ff \ud7ff \ue000 \uffff \U00010000 \U0010ffff" = "escaped key"
"~ ÿ 𐀀 " = "basic key"
'l ~ ÿ 𐀀 ' = "literal key"
output from parser-cmd (stderr):
Error: Error { message: "invalid control character in string literal (205..205)\n" }
Exit 1
want:
FAIL valid/string/quoted-unicode
Error: Error { message: "invalid control character in string literal (303..303)\n" }
Exit 1
input sent to parser-cmd:
escaped_string = "\u0000 \u0008 \u000c \U00000041 \u007f \u0080 \u00ff \ud7ff \ue000 \uffff \U00010000 \U0010ffff"
not_escaped_string = '\u0000 \u0008 \u000c \U00000041 \u007f \u0080 \u00ff \ud7ff \ue000 \uffff \U00010000 \U0010ffff'
basic_string = "~ ÿ 𐀀 "
literal_string = '~ ÿ 𐀀 '
output from parser-cmd (stderr):
Error: Error { message: "invalid control character in string literal (303..303)\n" }
Exit 1
want:
FAIL invalid/control/multi-cr
Expected an error, but no error was reported.
input sent to parser-cmd:
multi-cr = """null
"""
output from parser-cmd (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:
rawmulti-cr = '''null
'''
output from parser-cmd (stdout):
{
"rawmulti-cr": {"type": "string", "value": "null\r"}
}
want:
Exit code 1
FAIL invalid/table/super-twice
Expected an error, but no error was reported.
input sent to parser-cmd:
[a.b]
[a]
[a]
output from parser-cmd (stdout):
{
"a": {
"b": {}
}
}
want:
Exit code 1
toml-test v2025-04-19 [./scripts/target/release/taplo-decoder]: using embedded tests
valid tests: 188 passed, 6 failed
invalid tests: 374 passed, 3 failed
==> ENCODER TESTS
(not supported)
took 0.7 13.07