whatcanGOwrong

This commit is contained in:
2024-09-19 21:38:24 -04:00
commit d0ae4d841d
17908 changed files with 4096831 additions and 0 deletions
@@ -0,0 +1,6 @@
a = [{ b = 1 }]
# Cannot extend tables within static arrays
# https://github.com/toml-lang/toml/issues/908
[a.c]
foo = 1
@@ -0,0 +1,4 @@
# INVALID TOML DOC
fruit = []
[[fruit]] # Not allowed
@@ -0,0 +1,10 @@
# INVALID TOML DOC
[[fruit]]
name = "apple"
[[fruit.variety]]
name = "red delicious"
# This table conflicts with the previous table
[fruit.variety]
name = "granny smith"
@@ -0,0 +1,4 @@
array = [
"Is there life after an array separator?", No
"Entry"
]
@@ -0,0 +1,4 @@
array = [
"Is there life before an array separator?" No,
"Entry"
]
@@ -0,0 +1,5 @@
array = [
"Entry 1",
I don't belong,
"Entry 2",
]
@@ -0,0 +1,2 @@
# The following line contains a single carriage return control character
@@ -0,0 +1 @@
comment-cr = "Carriage return in comment" #
@@ -0,0 +1,33 @@
# "\x.." sequences are replaced with literal control characters.
comment-null = "null" # \x00
comment-lf = "ctrl-P" # \x10
comment-us = "ctrl-_" # \x1f
comment-del = "0x7f" # \x7f
comment-cr = "Carriage return in comment" # \x0da=1
string-null = "null\x00"
string-lf = "null\x10"
string-us = "null\x1f"
string-del = "null\x7f"
rawstring-null = 'null\x00'
rawstring-lf = 'null\x10'
rawstring-us = 'null\x1f'
rawstring-del = 'null\x7f'
multi-null = """null\x00"""
multi-lf = """null\x10"""
multi-us = """null\x1f"""
multi-del = """null\x7f"""
rawmulti-null = '''null\x00'''
rawmulti-lf = '''null\x10'''
rawmulti-us = '''null\x1f'''
rawmulti-del = '''null\x7f'''
string-bs = "backspace\x08"
bare-null = "some value" \x00
bare-formfeed = \x0c
bare-vertical-tab = \x0b
@@ -0,0 +1,2 @@
# time-hour = 2DIGIT ; 00-23
d = 2006-01-01T24:00:00-00:00
@@ -0,0 +1,3 @@
# date-mday = 2DIGIT ; 01-28, 01-29, 01-30, 01-31 based on
# ; month/year
d = 2006-01-32T00:00:00-00:00
@@ -0,0 +1,3 @@
# date-mday = 2DIGIT ; 01-28, 01-29, 01-30, 01-31 based on
# ; month/year
d = 2006-01-00T00:00:00-00:00
@@ -0,0 +1,2 @@
# time-minute = 2DIGIT ; 00-59
d = 2006-01-01T00:60:00-00:00
@@ -0,0 +1,2 @@
# date-month = 2DIGIT ; 01-12
d = 2006-13-01T00:00:00-00:00
@@ -0,0 +1,2 @@
# date-month = 2DIGIT ; 01-12
d = 2007-00-01T00:00:00-00:00
@@ -0,0 +1,2 @@
# Day "5" instead of "05"; the leading zero is required.
with-milli = 1987-07-5T17:45:00.12Z
@@ -0,0 +1,2 @@
# Month "7" instead of "07"; the leading zero is required.
no-leads = 1987-7-05T17:45:00Z
@@ -0,0 +1,2 @@
# No seconds in time.
no-secs = 1987-07-05T17:45Z
@@ -0,0 +1,2 @@
# No "t" or "T" between the date and time.
no-t = 1987-07-0517:45:00Z
@@ -0,0 +1,3 @@
# time-second = 2DIGIT ; 00-58, 00-59, 00-60 based on leap second
# ; rules
d = 2006-01-01T00:00:61-00:00
@@ -0,0 +1,2 @@
# Leading 0 is always required.
d = 01:32:0
@@ -0,0 +1,2 @@
# Leading 0 is always required.
d = 1:32:00
@@ -0,0 +1,2 @@
# Date cannot end with trailing T
d = 2006-01-30T
@@ -0,0 +1,5 @@
# There is a 0xda at after the quotes, and no EOL at the end of the file.
#
# This is a bit of an edge case: This indicates there should be two bytes
# (0b1101_1010) but there is no byte to follow because it's the end of the file.
x = """"""
@@ -0,0 +1,2 @@
# The following line contains an invalid UTF-8 sequence.
bad = "Ã"
@@ -0,0 +1,40 @@
leading-zero = 03.14
leading-zero-neg = -03.14
leading-zero-plus = +03.14
leading-point = .12345
leading-point-neg = -.12345
leading-point-plus = +.12345
trailing-point = 1.
trailing-point-min = -1.
trailing-point-plus = +1.
trailing-us = 1.2_
leading-us = _1.2
us-before-point = 1_.2
us-after-point = 1._2
double-point-1 = 0..1
double-point-2 = 0.1.2
exp-point-1 = 1e2.3
exp-point-2 = 1.e2
exp-double-e-1 = 1ee2
exp-double-e-2 = 1e2e3
exp-leading-us = 1e_23
exp-trailing-us = 1e_23_
exp-double-us = 1e__23
inf-incomplete-1 = in
inf-incomplete-2 = +in
inf-incomplete-3 = -in
nan-incomplete-1 = na
nan-incomplete-2 = +na
nan-incomplete-3 = -na
nan_underscore = na_n
inf_underscore = in_f

Some files were not shown because too many files have changed in this diff Show More