whatcanGOwrong
This commit is contained in:
@@ -0,0 +1 @@
|
||||
*.toml -text
|
||||
+1
@@ -0,0 +1 @@
|
||||
array = [1,,2]
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
array = [1,2,,]
|
||||
|
||||
+6
@@ -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
|
||||
+1
@@ -0,0 +1 @@
|
||||
wrong = [ 1 2 3 ]
|
||||
+1
@@ -0,0 +1 @@
|
||||
x = [42 #
|
||||
+1
@@ -0,0 +1 @@
|
||||
x = [{ key = 42 #
|
||||
+1
@@ -0,0 +1 @@
|
||||
x = [{ key = 42
|
||||
+1
@@ -0,0 +1 @@
|
||||
long_array = [ 1, 2, 3
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
# INVALID TOML DOC
|
||||
fruit = []
|
||||
|
||||
[[fruit]] # Not allowed
|
||||
+10
@@ -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"
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
array = [
|
||||
"Is there life after an array separator?", No
|
||||
"Entry"
|
||||
]
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
array = [
|
||||
"Is there life before an array separator?" No,
|
||||
"Entry"
|
||||
]
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
array = [
|
||||
"Entry 1",
|
||||
I don't belong,
|
||||
"Entry 2",
|
||||
]
|
||||
+1
@@ -0,0 +1 @@
|
||||
a = falsify
|
||||
+1
@@ -0,0 +1 @@
|
||||
a = fals
|
||||
+1
@@ -0,0 +1 @@
|
||||
a = truthy
|
||||
+1
@@ -0,0 +1 @@
|
||||
a = tru
|
||||
+1
@@ -0,0 +1 @@
|
||||
a = f
|
||||
+1
@@ -0,0 +1 @@
|
||||
a = t
|
||||
+1
@@ -0,0 +1 @@
|
||||
valid = False
|
||||
+1
@@ -0,0 +1 @@
|
||||
a = falsey
|
||||
+1
@@ -0,0 +1 @@
|
||||
a = truer
|
||||
+1
@@ -0,0 +1 @@
|
||||
b = FALSE
|
||||
+1
@@ -0,0 +1 @@
|
||||
a = TRUE
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
# The following line contains a single carriage return control character
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
bare-formfeed =
|
||||
BIN
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
bare-vertical-tab =
|
||||
+1
@@ -0,0 +1 @@
|
||||
comment-cr = "Carriage return in comment" #
|
||||
+1
@@ -0,0 +1 @@
|
||||
comment-del = "0x7f" #
|
||||
+1
@@ -0,0 +1 @@
|
||||
comment-lf = "ctrl-P" #
|
||||
BIN
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
comment-us = "ctrl-_" #
|
||||
+33
@@ -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
|
||||
+1
@@ -0,0 +1 @@
|
||||
multi-del = """null"""
|
||||
+1
@@ -0,0 +1 @@
|
||||
multi-lf = """null"""
|
||||
BIN
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
multi-us = """null"""
|
||||
+1
@@ -0,0 +1 @@
|
||||
rawmulti-del = '''null'''
|
||||
+1
@@ -0,0 +1 @@
|
||||
rawmulti-lf = '''null'''
|
||||
BIN
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
rawmulti-us = '''null'''
|
||||
+1
@@ -0,0 +1 @@
|
||||
rawstring-del = 'null'
|
||||
+1
@@ -0,0 +1 @@
|
||||
rawstring-lf = 'null'
|
||||
BIN
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
rawstring-us = 'null'
|
||||
+1
@@ -0,0 +1 @@
|
||||
string-bs = "backspace"
|
||||
+1
@@ -0,0 +1 @@
|
||||
string-del = "null"
|
||||
+1
@@ -0,0 +1 @@
|
||||
string-lf = "null"
|
||||
BIN
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
string-us = "null"
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
# time-hour = 2DIGIT ; 00-23
|
||||
d = 2006-01-01T24:00:00-00:00
|
||||
+3
@@ -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
|
||||
+3
@@ -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
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
# time-minute = 2DIGIT ; 00-59
|
||||
d = 2006-01-01T00:60:00-00:00
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
# date-month = 2DIGIT ; 01-12
|
||||
d = 2006-13-01T00:00:00-00:00
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
# date-month = 2DIGIT ; 01-12
|
||||
d = 2007-00-01T00:00:00-00:00
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
# Day "5" instead of "05"; the leading zero is required.
|
||||
with-milli = 1987-07-5T17:45:00.12Z
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
# Month "7" instead of "07"; the leading zero is required.
|
||||
no-leads = 1987-7-05T17:45:00Z
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
# No seconds in time.
|
||||
no-secs = 1987-07-05T17:45Z
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
# No "t" or "T" between the date and time.
|
||||
no-t = 1987-07-0517:45:00Z
|
||||
+3
@@ -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
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
# Leading 0 is always required.
|
||||
d = 01:32:0
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
# Leading 0 is always required.
|
||||
d = 1:32:00
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
# Date cannot end with trailing T
|
||||
d = 2006-01-30T
|
||||
+5
@@ -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 = """"""�
|
||||
+1
@@ -0,0 +1 @@
|
||||
# �
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
# The following line contains an invalid UTF-8 sequence.
|
||||
bad = "Ã"
|
||||
+1
@@ -0,0 +1 @@
|
||||
bom-not-at-start ÿý
|
||||
+1
@@ -0,0 +1 @@
|
||||
bom-not-at-start= ÿý
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
double-point-1 = 0..1
|
||||
+1
@@ -0,0 +1 @@
|
||||
double-point-2 = 0.1.2
|
||||
+1
@@ -0,0 +1 @@
|
||||
exp-double-e-1 = 1ee2
|
||||
+1
@@ -0,0 +1 @@
|
||||
exp-double-e-2 = 1e2e3
|
||||
+1
@@ -0,0 +1 @@
|
||||
exp-double-us = 1e__23
|
||||
+1
@@ -0,0 +1 @@
|
||||
exp-leading-us = 1e_23
|
||||
+1
@@ -0,0 +1 @@
|
||||
exp-point-1 = 1e2.3
|
||||
+1
@@ -0,0 +1 @@
|
||||
exp-point-2 = 1.e2
|
||||
+1
@@ -0,0 +1 @@
|
||||
exp-trailing-us = 1e_23_
|
||||
+40
@@ -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
|
||||
+1
@@ -0,0 +1 @@
|
||||
inf-incomplete-1 = in
|
||||
+1
@@ -0,0 +1 @@
|
||||
inf-incomplete-2 = +in
|
||||
+1
@@ -0,0 +1 @@
|
||||
inf-incomplete-3 = -in
|
||||
+1
@@ -0,0 +1 @@
|
||||
inf_underscore = in_f
|
||||
+1
@@ -0,0 +1 @@
|
||||
leading-point-neg = -.12345
|
||||
+1
@@ -0,0 +1 @@
|
||||
leading-point-plus = +.12345
|
||||
+1
@@ -0,0 +1 @@
|
||||
leading-point = .12345
|
||||
+1
@@ -0,0 +1 @@
|
||||
leading-us = _1.2
|
||||
+1
@@ -0,0 +1 @@
|
||||
leading-zero-neg = -03.14
|
||||
+1
@@ -0,0 +1 @@
|
||||
leading-zero-plus = +03.14
|
||||
+1
@@ -0,0 +1 @@
|
||||
leading-zero = 03.14
|
||||
+1
@@ -0,0 +1 @@
|
||||
nan-incomplete-1 = na
|
||||
+1
@@ -0,0 +1 @@
|
||||
nan-incomplete-2 = +na
|
||||
+1
@@ -0,0 +1 @@
|
||||
nan-incomplete-3 = -na
|
||||
+1
@@ -0,0 +1 @@
|
||||
nan_underscore = na_n
|
||||
+1
@@ -0,0 +1 @@
|
||||
trailing-point-min = -1.
|
||||
+1
@@ -0,0 +1 @@
|
||||
trailing-point-plus = +1.
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user