tomlrb version 4edc50c
FAIL valid/key/like-date
     /home/martin/code/Toml/toml-test-matrix/src/ruby-tomlrb/lib/tomlrb.rb:28:in `rescue in parse': parse error on value ["2001", "02", "03", nil, nil, nil, nil] (DATETIME) (Tomlrb::ParseError)
     	from /home/martin/code/Toml/toml-test-matrix/src/ruby-tomlrb/lib/tomlrb.rb:25:in `parse'
     	from ./ruby-tomlrb-decoder:35:in `
' /home/martin/.local/share/gem/ruby/3.3.0/gems/racc-1.8.1/lib/racc/parser.rb:536:in `on_error': parse error on value ["2001", "02", "03", nil, nil, nil, nil] (DATETIME) (Racc::ParseError) from /home/martin/.local/share/gem/ruby/3.3.0/gems/racc-1.8.1/lib/racc/parser.rb:263:in `_racc_do_parse_c' from /home/martin/.local/share/gem/ruby/3.3.0/gems/racc-1.8.1/lib/racc/parser.rb:263:in `do_parse' from /home/martin/code/Toml/toml-test-matrix/src/ruby-tomlrb/lib/tomlrb/parser.rb:16:in `parse' from /home/martin/code/Toml/toml-test-matrix/src/ruby-tomlrb/lib/tomlrb.rb:26:in `parse' from ./ruby-tomlrb-decoder:35:in `
' 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): /home/martin/code/Toml/toml-test-matrix/src/ruby-tomlrb/lib/tomlrb.rb:28:in `rescue in parse': parse error on value ["2001", "02", "03", nil, nil, nil, nil] (DATETIME) (Tomlrb::ParseError) from /home/martin/code/Toml/toml-test-matrix/src/ruby-tomlrb/lib/tomlrb.rb:25:in `parse' from ./ruby-tomlrb-decoder:35:in `
' /home/martin/.local/share/gem/ruby/3.3.0/gems/racc-1.8.1/lib/racc/parser.rb:536:in `on_error': parse error on value ["2001", "02", "03", nil, nil, nil, nil] (DATETIME) (Racc::ParseError) from /home/martin/.local/share/gem/ruby/3.3.0/gems/racc-1.8.1/lib/racc/parser.rb:263:in `_racc_do_parse_c' from /home/martin/.local/share/gem/ruby/3.3.0/gems/racc-1.8.1/lib/racc/parser.rb:263:in `do_parse' from /home/martin/code/Toml/toml-test-matrix/src/ruby-tomlrb/lib/tomlrb/parser.rb:16:in `parse' from /home/martin/code/Toml/toml-test-matrix/src/ruby-tomlrb/lib/tomlrb.rb:26:in `parse' from ./ruby-tomlrb-decoder:35:in `
' Exit 1 want: FAIL invalid/array/double-comma-1 Expected an error, but no error was reported. input sent to parser-cmd: double-comma-1 = [1,,2] output from parser-cmd (stdout): { "double-comma-1": [ {"type": "integer", "value": "1"}, {"type": "integer", "value": "2"} ] } want: Exit code 1 FAIL invalid/array/double-comma-2 Expected an error, but no error was reported. input sent to parser-cmd: double-comma-2 = [1,2,,] output from parser-cmd (stdout): { "double-comma-2": [ {"type": "integer", "value": "1"}, {"type": "integer", "value": "2"} ] } want: Exit code 1 FAIL invalid/array/only-comma-1 Expected an error, but no error was reported. input sent to parser-cmd: only-comma-1 = [,] output from parser-cmd (stdout): { "only-comma-1": [] } want: Exit code 1 FAIL invalid/array/only-comma-2 Expected an error, but no error was reported. input sent to parser-cmd: only-comma-2 = [,,] output from parser-cmd (stdout): { "only-comma-2": [] } 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\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/datetime/feb-29 Expected an error, but no error was reported. input sent to parser-cmd: "not a leap year" = 2100-02-29T15:15:15Z output from parser-cmd (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: "only 28 or 29 days in february" = 1988-02-30T15:15:15Z output from parser-cmd (stdout): { "only 28 or 29 days in february": {"type": "datetime", "value": "1988-03-01T15:15:15Z"} } want: Exit code 1 FAIL invalid/inline-table/duplicate-key-3 Expected an error, but no error was reported. input sent to parser-cmd: tbl = { fruit = { apple.color = "red" }, fruit.apple.texture = { smooth = true } } output from parser-cmd (stdout): { "tbl": { "fruit": { "apple": { "color": {"type": "string", "value": "red"}, "texture": { "smooth": {"type": "bool", "value": "true"} } } } } } want: Exit code 1 FAIL invalid/inline-table/overwrite-03 Expected an error, but no error was reported. input sent to parser-cmd: a = { b = 1 } a.b = 2 output from parser-cmd (stdout): { "a": { "b": {"type": "integer", "value": "2"} } } want: Exit code 1 FAIL invalid/inline-table/overwrite-08 Expected an error, but no error was reported. input sent to parser-cmd: tab = { inner = { dog = "best" }, inner.cat = "worst" } output from parser-cmd (stdout): { "tab": { "inner": { "cat": {"type": "string", "value": "worst"}, "dog": {"type": "string", "value": "best"} } } } want: Exit code 1 FAIL invalid/key/dotted-redefine-table-1 Expected an error, but no error was reported. input sent to parser-cmd: a = false a.b = true output from parser-cmd (stdout): { "a": { "b": {"type": "bool", "value": "true"} } } want: Exit code 1 FAIL invalid/local-date/feb-29 Expected an error, but no error was reported. input sent to parser-cmd: "not a leap year" = 2100-02-29 output from parser-cmd (stdout): { "not a leap year": {"type": "date-local", "value": "2100-03-01"} } want: Exit code 1 FAIL invalid/local-date/feb-30 Expected an error, but no error was reported. input sent to parser-cmd: "only 28 or 29 days in february" = 1988-02-30 output from parser-cmd (stdout): { "only 28 or 29 days in february": {"type": "date-local", "value": "1988-03-01"} } want: Exit code 1 FAIL invalid/local-datetime/feb-29 Expected an error, but no error was reported. input sent to parser-cmd: "not a leap year" = 2100-02-29T15:15:15 output from parser-cmd (stdout): { "not a leap year": {"type": "datetime-local", "value": "2100-03-01T15: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: "only 28 or 29 days in february" = 1988-02-30T15:15:15 output from parser-cmd (stdout): { "only 28 or 29 days in february": {"type": "datetime-local", "value": "1988-03-01T15:15:15"} } want: Exit code 1 FAIL invalid/local-datetime/hour-over Expected an error, but no error was reported. input sent to parser-cmd: # time-hour = 2DIGIT ; 00-23 d = 2006-01-01T24:00:00 output from parser-cmd (stdout): { "d": {"type": "datetime-local", "value": "2006-01-02T00:00:00"} } want: Exit code 1 FAIL invalid/local-time/hour-over Expected an error, but no error was reported. input sent to parser-cmd: # time-hour = 2DIGIT ; 00-23 d = 24:00:00 output from parser-cmd (stdout): { "d": {"type": "time-local", "value": "00:00:00"} } want: Exit code 1 FAIL invalid/string/bad-escape-3 Expected an error, but no error was reported. input sent to parser-cmd: backslash = "\" output from parser-cmd (stdout): { "backslash": {"type": "string", "value": "\\"} } 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 [./ruby-tomlrb-decoder]: using embedded tests valid tests: 193 passed, 1 failed invalid tests: 357 passed, 20 failed ==> ENCODER TESTS (not supported) took 4.8 3.11