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:
# ~ ÿ 𐀀
output from parser-cmd (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:
"\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):
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/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:
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):
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:
# The following line contains a single carriage return control character
output from parser-cmd (stdout):
{}
want:
Exit code 1
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):
{
"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:
multi-cr = """null
"""
output from parser-cmd (stdout):
{
"multi-cr": {"type": "string", "value": "null\n"}
}
want:
Exit code 1
FAIL invalid/control/rawmulti-cd
Expected an error, but no error was reported.
input sent to parser-cmd:
rawmulti-cd = '''null
'''
output from parser-cmd (stdout):
{
"rawmulti-cd": {"type": "string", "value": "null\n"}
}
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 v2024-05-31 [./src/cs-tomlyn/cs-tomlyn-decoder/bin/Release/net8.0/cs-tomlyn-decoder]: using embedded tests
valid tests: 179 passed, 3 failed
invalid tests: 366 passed, 5 failed
==> ENCODER TESTS
(not supported)
took 76.3 1.72