toml-parser version 9a47cf0
FAIL valid/string/start-mb
TomlDecoder: Uncaught exception ghc-internal:GHC.Internal.IO.Exception.IOException:
user error (12:1: lexical error: unexpected '\167')
Exit 1
input sent to parser-cmd:
# Start first line with a multibyte character.
#
# https://github.com/marzer/tomlplusplus/issues/190
s1 = "§"
s2 = '§'
s3 = """\
§"""
s4 = """
§"""
s5 = """§"""
s6 = '''
§'''
s7 = '''§'''
output from parser-cmd (stderr):
TomlDecoder: Uncaught exception ghc-internal:GHC.Internal.IO.Exception.IOException:
user error (12:1: lexical error: unexpected '\167')
Exit 1
want:
FAIL invalid/datetime/offset-overflow-hour
Expected an error, but no error was reported.
input sent to parser-cmd:
# Hour must be 00-24
d = 1985-06-18 17:04:07+25:00
output from parser-cmd (stdout):
{
"d": {"type": "datetime", "value": "1985-06-18T17:04:07+25:00"}
}
want:
Exit code 1
FAIL invalid/datetime/offset-overflow-minute
Expected an error, but no error was reported.
input sent to parser-cmd:
# Minute must be 00-59; we allow 60 too because some people do write offsets of
# 60 minutes
d = 1985-06-18 17:04:07+12:61
output from parser-cmd (stdout):
{
"d": {"type": "datetime", "value": "1985-06-18T17:04:07+13:01"}
}
want:
Exit code 1
toml-test v2025-04-19 [./TomlDecoder]: using embedded tests
valid tests: 193 passed, 1 failed
invalid tests: 375 passed, 2 failed
==> ENCODER TESTS
toml-test v2025-04-19 [./TomlEncoder]: using embedded tests
encoder tests: 194 passed, 0 failed
took 3.9 0.67