toml-eslint-parser version f323827
FAIL valid/array/array
     Values for key "dates" don't match:
       Expected:     1979-05-27 07:32:00 +0000 UTC
       Your encoder: 1979-05-27 06:32:00 +0000 UTC

     input sent to parser-cmd (PID 27852):
       ints = [1, 2, 3, ]
       floats = [1.1, 2.1, 3.1]
       strings = ["a", "b", "c"]
       dates = [
       	1987-07-05T17:45:00Z,
       	1979-05-27T07:32:00,
       	2006-06-01,
       	11:00:00,
       ]
       comments = [
                1,
                2, #this is ok
       ]

     output from parser-cmd (PID 27852) (stdout):
       {
         "comments": [
           {"type": "integer", "value": "1"},
           {"type": "integer", "value": "2"}
         ],
         "dates": [
           {"type": "datetime", "value": "1987-07-05T17:45:00.000Z"},
           {"type": "datetime-local", "value": "1979-05-27T06:32:00.000"},
           {"type": "date-local", "value": "2006-05-31"},
           {"type": "time-local", "value": "11:25:21.000"}
         ],
         "floats": [
           {"type": "float", "value": "1.1"},
           {"type": "float", "value": "2.1"},
           {"type": "float", "value": "3.1"}
         ],
         "ints": [
           {"type": "integer", "value": "1"},
           {"type": "integer", "value": "2"},
           {"type": "integer", "value": "3"}
         ],
         "strings": [
           {"type": "string", "value": "a"},
           {"type": "string", "value": "b"},
           {"type": "string", "value": "c"}
         ]
       }

     want:
       {
           "comments": [
               {"type": "integer", "value": "1"},
               {"type": "integer", "value": "2"}
           ],
           "dates": [
               {"type": "datetime", "value": "1987-07-05T17:45:00Z"},
               {"type": "datetime-local", "value": "1979-05-27T07:32:00"},
               {"type": "date-local", "value": "2006-06-01"},
               {"type": "time-local", "value": "11:00:00"}
           ],
           "floats": [
               {"type": "float", "value": "1.1"},
               {"type": "float", "value": "2.1"},
               {"type": "float", "value": "3.1"}
           ],
           "ints": [
               {"type": "integer", "value": "1"},
               {"type": "integer", "value": "2"},
               {"type": "integer", "value": "3"}
           ],
           "strings": [
               {"type": "string", "value": "a"},
               {"type": "string", "value": "b"},
               {"type": "string", "value": "c"}
           ]
       }

FAIL valid/comment/everywhere
     Values for key "group.d" don't match:
       Expected:     1979-05-27 00:00:00 +0000 UTC
       Your encoder: 1979-05-26 00:00:00 +0000 UTC

     input sent to parser-cmd (PID 28027):
       # Top comment.
         # Top comment.
       # Top comment.

       # [no-extraneous-groups-please]

       [group] # Comment
       answer = 42 # Comment
       # no-extraneous-keys-please = 999
       # Inbetween comment.
       more = [ # Comment
         # What about multiple # comments?
         # Can you handle it?
         #
                 # Evil.
       # Evil.
         42, 42, # Comments within arrays are fun.
         # What about multiple # comments?
         # Can you handle it?
         #
                 # Evil.
       # Evil.
       # ] Did I fool you?
       ] # Hopefully not.

       # Make sure the space between the datetime and "#" isn't lexed.
       dt = 1979-05-27T07:32:12-07:00  # c
       d = 1979-05-27 # Comment

       [[aot]] # Comment
       k = 98 # Comment
       [[aot]]# Comment
       k = 99# Comment

     output from parser-cmd (PID 28027) (stdout):
       {
         "aot": [
           {
             "k": {"type": "integer", "value": "98"}
           },
           {
             "k": {"type": "integer", "value": "99"}
           }
         ],
         "group": {
           "answer": {"type": "integer", "value": "42"},
           "d":      {"type": "date-local", "value": "1979-05-26"},
           "dt":     {"type": "datetime", "value": "1979-05-27T14:32:12.000Z"},
           "more": [
             {"type": "integer", "value": "42"},
             {"type": "integer", "value": "42"}
           ]
         }
       }

     want:
       {
           "aot": [
               {
                   "k": {"type": "integer", "value": "98"}
               },
               {
                   "k": {"type": "integer", "value": "99"}
               }
           ],
           "group": {
               "answer": {"type": "integer", "value": "42"},
               "d":      {"type": "date-local", "value": "1979-05-27"},
               "dt":     {"type": "datetime", "value": "1979-05-27T07:32:12-07:00"},
               "more": [
                   {"type": "integer", "value": "42"},
                   {"type": "integer", "value": "42"}
               ]
           }
       }

FAIL valid/datetime/edge
     Values for key "first-local" don't match:
       Expected:     0001-01-01 00:00:00 +0000 UTC
       Your encoder: 0001-01-01 00:25:21 +0000 UTC

     input sent to parser-cmd (PID 28039):
       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 (PID 28039) (stdout):
       {
         "first-date":   {"type": "date-local", "value": "0001-01-01"},
         "first-local":  {"type": "datetime-local", "value": "0001-01-01T00:25:21.000"},
         "first-offset": {"type": "datetime", "value": "0001-01-01T00:00:00.000Z"},
         "last-date":    {"type": "date-local", "value": "9999-12-31"},
         "last-local":   {"type": "datetime-local", "value": "9999-12-31T23:59:59.000"},
         "last-offset":  {"type": "datetime", "value": "9999-12-31T23:59:59.000Z"}
       }

     want:
       {
           "first-date":   {"type": "date-local", "value": "0001-01-01"},
           "first-local":  {"type": "datetime-local", "value": "0001-01-01T00:00:00"},
           "first-offset": {"type": "datetime", "value": "0001-01-01T00:00:00Z"},
           "last-date":    {"type": "date-local", "value": "9999-12-31"},
           "last-local":   {"type": "datetime-local", "value": "9999-12-31T23:59:59"},
           "last-offset":  {"type": "datetime", "value": "9999-12-31T23:59:59Z"}
       }

FAIL valid/datetime/local
     Values for key "local" don't match:
       Expected:     1987-07-05 17:45:00 +0000 UTC
       Your encoder: 1987-07-05 16:45:00 +0000 UTC

     input sent to parser-cmd (PID 28102):
       local = 1987-07-05T17:45:00
       milli = 1977-12-21T10:32:00.555
       space = 1987-07-05 17:45:00

     output from parser-cmd (PID 28102) (stdout):
       {
         "local": {"type": "datetime-local", "value": "1987-07-05T16:45:00.000"},
         "milli": {"type": "datetime-local", "value": "1977-12-21T10:32:00.555"},
         "space": {"type": "datetime-local", "value": "1987-07-05T16:45:00.000"}
       }

     want:
       {
           "local": {"type": "datetime-local", "value": "1987-07-05T17:45:00"},
           "milli": {"type": "datetime-local", "value": "1977-12-21T10:32:00.555"},
           "space": {"type": "datetime-local", "value": "1987-07-05T17:45:00"}
       }

FAIL valid/datetime/local-date
     Values for key "bestdayever" don't match:
       Expected:     1987-07-05 00:00:00 +0000 UTC
       Your encoder: 1987-07-04 00:00:00 +0000 UTC

     input sent to parser-cmd (PID 28078):
       bestdayever = 1987-07-05

     output from parser-cmd (PID 28078) (stdout):
       {
         "bestdayever": {"type": "date-local", "value": "1987-07-04"}
       }

     want:
       {
           "bestdayever": {"type": "date-local", "value": "1987-07-05"}
       }

FAIL valid/datetime/local-time
     Values for key "besttimeever" don't match:
       Expected:     0000-01-01 17:45:00 +0000 UTC
       Your encoder: 0000-01-01 18:10:21 +0000 UTC

     input sent to parser-cmd (PID 28089):
       besttimeever = 17:45:00
       milliseconds = 10:32:00.555

     output from parser-cmd (PID 28089) (stdout):
       {
         "besttimeever": {"type": "time-local", "value": "18:10:21.000"},
         "milliseconds": {"type": "time-local", "value": "10:57:21.555"}
       }

     want:
       {
           "besttimeever": {"type": "time-local", "value": "17:45:00"},
           "milliseconds": {"type": "time-local", "value": "10:32:00.555"}
       }

FAIL valid/spec-1.0.0/local-date-0
     Values for key "ld1" don't match:
       Expected:     1979-05-27 00:00:00 +0000 UTC
       Your encoder: 1979-05-26 00:00:00 +0000 UTC

     input sent to parser-cmd (PID 28776):
       ld1 = 1979-05-27

     output from parser-cmd (PID 28776) (stdout):
       {
         "ld1": {"type": "date-local", "value": "1979-05-26"}
       }

     want:
       {
           "ld1": {"type": "date-local", "value": "1979-05-27"}
       }

FAIL valid/spec-1.0.0/local-date-time-0
     Values for key "ldt1" don't match:
       Expected:     1979-05-27 07:32:00 +0000 UTC
       Your encoder: 1979-05-27 06:32:00 +0000 UTC

     input sent to parser-cmd (PID 28782):
       ldt1 = 1979-05-27T07:32:00
       ldt2 = 1979-05-27T00:32:00.999

     output from parser-cmd (PID 28782) (stdout):
       {
         "ldt1": {"type": "datetime-local", "value": "1979-05-27T06:32:00.000"},
         "ldt2": {"type": "datetime-local", "value": "1979-05-26T23:32:00.999"}
       }

     want:
       {
           "ldt1": {"type": "datetime-local", "value": "1979-05-27T07:32:00"},
           "ldt2": {"type": "datetime-local", "value": "1979-05-27T00:32:00.999"}
       }

FAIL valid/spec-1.0.0/local-time-0
     Values for key "lt1" don't match:
       Expected:     0000-01-01 07:32:00 +0000 UTC
       Your encoder: 0000-01-01 07:57:21 +0000 UTC

     input sent to parser-cmd (PID 28784):
       lt1 = 07:32:00
       lt2 = 00:32:00.999

     output from parser-cmd (PID 28784) (stdout):
       {
         "lt1": {"type": "time-local", "value": "07:57:21.000"},
         "lt2": {"type": "time-local", "value": "00:57:21.999"}
       }

     want:
       {
           "lt1": {"type": "time-local", "value": "07:32:00"},
           "lt2": {"type": "time-local", "value": "00:32:00.999"}
       }

FAIL valid/spec-1.0.0/table-7
     Values for key "owner.member_since" don't match:
       Expected:     1999-08-04 00:00:00 +0000 UTC
       Your encoder: 1999-08-03 00:00:00 +0000 UTC

     input sent to parser-cmd (PID 28908):
       # Top-level table begins.
       name = "Fido"
       breed = "pug"

       # Top-level table ends.
       [owner]
       name = "Regina Dogman"
       member_since = 1999-08-04

     output from parser-cmd (PID 28908) (stdout):
       {
         "breed": {"type": "string", "value": "pug"},
         "name":  {"type": "string", "value": "Fido"},
         "owner": {
           "member_since": {"type": "date-local", "value": "1999-08-03"},
           "name":         {"type": "string", "value": "Regina Dogman"}
         }
       }

     want:
       {
           "breed": {"type": "string", "value": "pug"},
           "name":  {"type": "string", "value": "Fido"},
           "owner": {
               "member_since": {"type": "date-local", "value": "1999-08-04"},
               "name":         {"type": "string", "value": "Regina Dogman"}
           }
       }

FAIL invalid/control/bare-cr
     Expected an error, but no error was reported.

     input sent to parser-cmd (PID 29682):
       # The following line contains a single carriage return control character
       

     output from parser-cmd (PID 29682) (stdout):
       {}

     want:
       Exit code 1

FAIL invalid/control/multi-cr
     Expected an error, but no error was reported.

     input sent to parser-cmd (PID 29747):
       multi-cr   = """null
"""

     output from parser-cmd (PID 29747) (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 29811):
       rawmulti-cr   = '''null
'''

     output from parser-cmd (PID 29811) (stdout):
       {
         "rawmulti-cr": {"type": "string", "value": "null\n"}
       }

     want:
       Exit code 1

FAIL invalid/encoding/bad-codepoint
     Expected an error, but no error was reported.

     input sent to parser-cmd (PID 30164):
       # Invalid codepoint U+D800 : í €

     output from parser-cmd (PID 30164) (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 (PID 30195):
       # Ã

     output from parser-cmd (PID 30195) (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 (PID 30199):
       # The following line contains an invalid UTF-8 sequence.
       bad = """Ã"""

     output from parser-cmd (PID 30199) (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 (PID 30196):
       # The following line contains an invalid UTF-8 sequence.
       bad = '''Ã'''

     output from parser-cmd (PID 30196) (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 (PID 30212):
       # The following line contains an invalid UTF-8 sequence.
       bad = "Ã"

     output from parser-cmd (PID 30212) (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 (PID 30211):
       # The following line contains an invalid UTF-8 sequence.
       bad = 'Ã'

     output from parser-cmd (PID 30211) (stdout):
       {
         "bad": {"type": "string", "value": "�"}
       }

     want:
       Exit code 1

FAIL invalid/table/trailing-dot
     Expected an error, but no error was reported.

     input sent to parser-cmd (PID 543):
       [a.]

     output from parser-cmd (PID 543) (stdout):
       {
         "a": {}
       }

     want:
       Exit code 1

toml-test v2025-04-23 [./toml-test-decode.js]: using embedded tests
  valid tests: 195 passed, 10 failed
invalid tests: 519 passed, 10 failed

==> ENCODER TESTS
(not supported)
took 11.6 0.88