toml-parser version 91112d1
FAIL valid/string/start-mb
TomlDecoder: 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: 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 v2024-05-31 [./src/haskell-toml-parser/TomlDecoder]: using embedded tests
valid tests: 181 passed, 1 failed
invalid tests: 369 passed, 2 failed
==> ENCODER TESTS
toml-test v2024-05-31 [./src/haskell-toml-parser/TomlEncoder]: using embedded tests
encoder tests: 182 passed, 0 failed
took 2.7 0.97