tomlyn version 0.16.2
FAIL valid/comment/nonascii
System.InvalidOperationException: The document has errors: (1,17) : error : The character `` is an invalid UTF8 character
at Tomlyn.Model.TomlTable.From(DocumentSyntax documentSyntax)
at Tomlyn.Toml.ToModel(DocumentSyntax syntax)
at TomlynDecoder.Main(String[] args) in /home/martin/code/Toml/toml-test-matrix/src/cs-tomlyn/cs-tomlyn-decoder/cs-tomlyn-decoder.cs:line 17
Exit 1
input sent to parser-cmd (PID 19956):
# ~ ÿ 𐀀
output from parser-cmd (PID 19956) (stderr):
System.InvalidOperationException: The document has errors: (1,17) : error : The character `` is an invalid UTF8 character
at Tomlyn.Model.TomlTable.From(DocumentSyntax documentSyntax)
at Tomlyn.Toml.ToModel(DocumentSyntax syntax)
at TomlynDecoder.Main(String[] args) in /home/martin/code/Toml/toml-test-matrix/src/cs-tomlyn/cs-tomlyn-decoder/cs-tomlyn-decoder.cs:line 17
Exit 1
want:
FAIL valid/key/quoted-unicode
System.InvalidOperationException: The document has errors: (4,81) : error : Invalid Unicode scalar value [10FFFF]
(6,16) : error : The character `` is an invalid UTF8 character
(7,18) : error : The character `` is an invalid UTF8 character
at Tomlyn.Model.TomlTable.From(DocumentSyntax documentSyntax)
at Tomlyn.Toml.ToModel(DocumentSyntax syntax)
at TomlynDecoder.Main(String[] args) in /home/martin/code/Toml/toml-test-matrix/src/cs-tomlyn/cs-tomlyn-decoder/cs-tomlyn-decoder.cs:line 17
Exit 1
input sent to parser-cmd (PID 20567):
"\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 (PID 20567) (stderr):
System.InvalidOperationException: The document has errors: (4,81) : error : Invalid Unicode scalar value [10FFFF]
(6,16) : error : The character `` is an invalid UTF8 character
(7,18) : error : The character `` is an invalid UTF8 character
at Tomlyn.Model.TomlTable.From(DocumentSyntax documentSyntax)
at Tomlyn.Toml.ToModel(DocumentSyntax syntax)
at TomlynDecoder.Main(String[] args) in /home/martin/code/Toml/toml-test-matrix/src/cs-tomlyn/cs-tomlyn-decoder/cs-tomlyn-decoder.cs:line 17
Exit 1
want:
FAIL valid/key/space
System.InvalidOperationException: The document has errors: (4,1) : error : Invalid control character found \t
(4,1) : error : Invalid control character found \t
(4,1) : error : Invalid control character found \t
at Tomlyn.Model.TomlTable.From(DocumentSyntax documentSyntax)
at Tomlyn.Toml.ToModel(DocumentSyntax syntax)
at TomlynDecoder.Main(String[] args) in /home/martin/code/Toml/toml-test-matrix/src/cs-tomlyn/cs-tomlyn-decoder/cs-tomlyn-decoder.cs:line 17
Exit 1
input sent to parser-cmd (PID 20571):
# Keep whitespace inside quotes keys at all positions.
"a b" = 1
" c d " = 2
" much whitespace \n \r\n " = 3
[ " tbl " ]
"\ttab\ttab\t" = "tab"
output from parser-cmd (PID 20571) (stderr):
System.InvalidOperationException: The document has errors: (4,1) : error : Invalid control character found \t
(4,1) : error : Invalid control character found \t
(4,1) : error : Invalid control character found \t
at Tomlyn.Model.TomlTable.From(DocumentSyntax documentSyntax)
at Tomlyn.Toml.ToModel(DocumentSyntax syntax)
at TomlynDecoder.Main(String[] args) in /home/martin/code/Toml/toml-test-matrix/src/cs-tomlyn/cs-tomlyn-decoder/cs-tomlyn-decoder.cs:line 17
Exit 1
want:
FAIL valid/string/quoted-unicode
System.InvalidOperationException: The document has errors: (2,105) : error : Invalid Unicode scalar value [10FFFF]
(5,31) : error : The character `` is an invalid UTF8 character
(6,33) : error : The character `` is an invalid UTF8 character
at Tomlyn.Model.TomlTable.From(DocumentSyntax documentSyntax)
at Tomlyn.Toml.ToModel(DocumentSyntax syntax)
at TomlynDecoder.Main(String[] args) in /home/martin/code/Toml/toml-test-matrix/src/cs-tomlyn/cs-tomlyn-decoder/cs-tomlyn-decoder.cs:line 17
Exit 1
input sent to parser-cmd (PID 21166):
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 (PID 21166) (stderr):
System.InvalidOperationException: The document has errors: (2,105) : error : Invalid Unicode scalar value [10FFFF]
(5,31) : error : The character `` is an invalid UTF8 character
(6,33) : error : The character `` is an invalid UTF8 character
at Tomlyn.Model.TomlTable.From(DocumentSyntax documentSyntax)
at Tomlyn.Toml.ToModel(DocumentSyntax syntax)
at TomlynDecoder.Main(String[] args) in /home/martin/code/Toml/toml-test-matrix/src/cs-tomlyn/cs-tomlyn-decoder/cs-tomlyn-decoder.cs:line 17
Exit 1
want:
FAIL invalid/control/bare-cr
Expected an error, but no error was reported.
input sent to parser-cmd (PID 21868):
# The following line contains a single carriage return control character
output from parser-cmd (PID 21868) (stdout):
{}
want:
Exit code 1
FAIL invalid/control/comment-cr
Expected an error, but no error was reported.
input sent to parser-cmd (PID 21895):
comment-cr = "Carriage return in comment" #
a=1
output from parser-cmd (PID 21895) (stdout):
{
"a": {"type": "integer", "value": "1"},
"comment-cr": {"type": "string", "value": "Carriage return in comment"}
}
want:
Exit code 1
FAIL invalid/control/multi-cr
Expected an error, but no error was reported.
input sent to parser-cmd (PID 21935):
multi-cr = """null
"""
output from parser-cmd (PID 21935) (stdout):
{
"multi-cr": {"type": "string", "value": "null\n"}
}
want:
Exit code 1
FAIL invalid/control/rawmulti-cr
Expected an error, but no error was reported.
input sent to parser-cmd (PID 22017):
rawmulti-cr = '''null
'''
output from parser-cmd (PID 22017) (stdout):
{
"rawmulti-cr": {"type": "string", "value": "null\n"}
}
want:
Exit code 1
FAIL invalid/datetime/offset-minus-no-hour-minute-sep
Expected an error, but no error was reported.
input sent to parser-cmd (PID 22293):
foo = 1997-09-09T09:09:09.09+0909
output from parser-cmd (PID 22293) (stdout):
{
"foo": {"type": "datetime", "value": "1997-09-09T01:00:09.09+01:00"}
}
want:
Exit code 1
FAIL invalid/datetime/offset-plus-no-hour-minute-sep
Expected an error, but no error was reported.
input sent to parser-cmd (PID 22320):
foo = 1997-09-09T09:09:09.09+0909
output from parser-cmd (PID 22320) (stdout):
{
"foo": {"type": "datetime", "value": "1997-09-09T01:00:09.09+01:00"}
}
want:
Exit code 1
FAIL invalid/key/duplicate-keys-07
Expected an error, but no error was reported.
input sent to parser-cmd (PID 23755):
"" = 1
"" = 2
output from parser-cmd (PID 23755) (stdout):
{
"": {"type": "integer", "value": "2"}
}
want:
Exit code 1
FAIL invalid/table/append-with-dotted-keys-04
Expected an error, but no error was reported.
input sent to parser-cmd (PID 25206):
[dependencies.foo]
version = "0.16"
[dependencies]
libc = "0.2"
[dependencies]
rand = "0.3.14"
output from parser-cmd (PID 25206) (stdout):
{
"dependencies": {
"libc": {"type": "string", "value": "0.2"},
"rand": {"type": "string", "value": "0.3.14"},
"foo": {
"version": {"type": "string", "value": "0.16"}
}
}
}
want:
Exit code 1
FAIL invalid/table/super-twice
Expected an error, but no error was reported.
input sent to parser-cmd (PID 25654):
[a.b]
[a]
[a]
output from parser-cmd (PID 25654) (stdout):
{
"a": {
"b": {}
}
}
want:
Exit code 1
toml-test v2025-04-23 [./cs-tomlyn-decoder/bin/Release/net8.0/cs-tomlyn-decoder]: using embedded tests
valid tests: 201 passed, 4 failed
invalid tests: 520 passed, 9 failed
==> ENCODER TESTS
(not supported)
took 41.8 0.95