j-toml version b843be0
FAIL invalid/control/comment-cr
Expected an error, but no error was reported.
input sent to parser-cmd:
comment-cr = "Carriage return in comment" #
a=1
output from parser-cmd (stdout):
{
"comment-cr": {"type": "string", "value": "Carriage return in comment"}
}
want:
Exit code 1
FAIL invalid/control/comment-del
Expected an error, but no error was reported.
input sent to parser-cmd:
comment-del = "0x7f" #
output from parser-cmd (stdout):
{
"comment-del": {"type": "string", "value": "0x7f"}
}
want:
Exit code 1
FAIL invalid/control/comment-ff
Expected an error, but no error was reported.
input sent to parser-cmd:
comment-ff = "0x7f" #
output from parser-cmd (stdout):
{
"comment-ff": {"type": "string", "value": "0x7f"}
}
want:
Exit code 1
FAIL invalid/control/comment-lf
Expected an error, but no error was reported.
input sent to parser-cmd:
comment-lf = "ctrl-P" #
output from parser-cmd (stdout):
{
"comment-lf": {"type": "string", "value": "ctrl-P"}
}
want:
Exit code 1
FAIL invalid/control/comment-null
Expected an error, but no error was reported.
input sent to parser-cmd:
comment-null = "null" #
output from parser-cmd (stdout):
{
"comment-null": {"type": "string", "value": "null"}
}
want:
Exit code 1
FAIL invalid/control/comment-us
Expected an error, but no error was reported.
input sent to parser-cmd:
comment-us = "ctrl-_" #
output from parser-cmd (stdout):
{
"comment-us": {"type": "string", "value": "ctrl-_"}
}
want:
Exit code 1
FAIL invalid/encoding/bad-codepoint
Expected an error, but no error was reported.
input sent to parser-cmd:
# Invalid codepoint U+D800 : í €
output from parser-cmd (stdout):
{}
want:
Exit code 1
FAIL invalid/encoding/bad-utf8-in-comment
Expected an error, but no error was reported.
input sent to parser-cmd:
# Ã
output from parser-cmd (stdout):
{}
want:
Exit code 1
FAIL invalid/encoding/bad-utf8-in-multiline
Expected an error, but no error was reported.
input sent to parser-cmd:
# The following line contains an invalid UTF-8 sequence.
bad = """Ã"""
output from parser-cmd (stdout):
{
"bad": {"type": "string", "value": "�"}
}
want:
Exit code 1
FAIL invalid/encoding/bad-utf8-in-multiline-literal
Expected an error, but no error was reported.
input sent to parser-cmd:
# The following line contains an invalid UTF-8 sequence.
bad = '''Ã'''
output from parser-cmd (stdout):
{
"bad": {"type": "string", "value": "�"}
}
want:
Exit code 1
FAIL invalid/encoding/bad-utf8-in-string
Expected an error, but no error was reported.
input sent to parser-cmd:
# The following line contains an invalid UTF-8 sequence.
bad = "Ã"
output from parser-cmd (stdout):
{
"bad": {"type": "string", "value": "�"}
}
want:
Exit code 1
FAIL invalid/encoding/bad-utf8-in-string-literal
Expected an error, but no error was reported.
input sent to parser-cmd:
# The following line contains an invalid UTF-8 sequence.
bad = 'Ã'
output from parser-cmd (stdout):
{
"bad": {"type": "string", "value": "�"}
}
want:
Exit code 1
FAIL invalid/inline-table/no-comma-1
Expected an error, but no error was reported.
input sent to parser-cmd:
t = {x = 3 y = 4}
output from parser-cmd (stdout):
{
"t": {
"x": {"type": "integer", "value": "3"},
"y": {"type": "integer", "value": "4"}
}
}
want:
Exit code 1
FAIL invalid/inline-table/no-comma-2
Expected an error, but no error was reported.
input sent to parser-cmd:
arrr = { comma-missing = true valid-toml = false }
output from parser-cmd (stdout):
{
"arrr": {
"comma-missing": {"type": "bool", "value": "true"},
"valid-toml": {"type": "bool", "value": "false"}
}
}
want:
Exit code 1
toml-test v2024-05-31 [./src/js-j-toml/js-toml-j-decode]: using embedded tests
valid tests: 182 passed, 0 failed
invalid tests: 357 passed, 14 failed
==> ENCODER TESTS
toml-test v2024-05-31 [./src/js-j-toml/js-toml-j-encode]: using embedded tests
encoder tests: 182 passed, 0 failed
took 12.2 1.02