-
-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
internal/toml-test/tests/invalid/datetime/offset-overflow-hour.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Hour must be 00-24 | ||
d = 1985-06-18 17:04:07+25:00 |
3 changes: 3 additions & 0 deletions
3
internal/toml-test/tests/invalid/datetime/offset-overflow-minute.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
space = 1987-07-05 17:45:00Z | ||
|
||
# ABNF is case-insensitive, both "Z" and "z" must be supported. | ||
lower = 1987-07-05t17:45:00z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"s1": {"type": "string", "value": "§"}, | ||
"s2": {"type": "string", "value": "§"}, | ||
"s3": {"type": "string", "value": "§"}, | ||
"s4": {"type": "string", "value": "§"}, | ||
"s5": {"type": "string", "value": "§"}, | ||
"s6": {"type": "string", "value": "§"}, | ||
"s7": {"type": "string", "value": "§"} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Start first line with a multibyte character. | ||
# | ||
# https://github.com/marzer/tomlplusplus/issues/190 | ||
s1 = "§" | ||
s2 = '§' | ||
s3 = """\ | ||
§""" | ||
s4 = """ | ||
§""" | ||
s5 = """§""" | ||
s6 = ''' | ||
§''' | ||
s7 = '''§''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters