Skip to content

Commit

Permalink
Add invalid test for year 10000
Browse files Browse the repository at this point in the history
  • Loading branch information
arp242 committed Dec 3, 2023
1 parent 04256ad commit d45be36
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/files-toml-1.0.0
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ invalid/datetime/no-secs.toml
invalid/datetime/no-t.toml
invalid/datetime/second-over.toml
invalid/datetime/time-no-leads.toml
invalid/datetime/y10k.toml
invalid/encoding/bad-codepoint.toml
invalid/encoding/bad-utf8-at-end.toml
invalid/encoding/bad-utf8-in-comment.toml
Expand Down Expand Up @@ -243,6 +244,7 @@ invalid/local-date/month-under.toml
invalid/local-date/no-leads.toml
invalid/local-date/no-leads-with-milli.toml
invalid/local-date/trailing-t.toml
invalid/local-date/y10k.toml
invalid/local-datetime/feb-29.toml
invalid/local-datetime/feb-30.toml
invalid/local-datetime/hour-over.toml
Expand All @@ -257,6 +259,7 @@ invalid/local-datetime/no-secs.toml
invalid/local-datetime/no-t.toml
invalid/local-datetime/second-over.toml
invalid/local-datetime/time-no-leads.toml
invalid/local-datetime/y10k.toml
invalid/local-time/hour-over.toml
invalid/local-time/minute-over.toml
invalid/local-time/no-secs.toml
Expand Down
3 changes: 3 additions & 0 deletions tests/files-toml-1.1.0
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ invalid/datetime/no-leads-with-milli.toml
invalid/datetime/no-t.toml
invalid/datetime/second-over.toml
invalid/datetime/time-no-leads.toml
invalid/datetime/y10k.toml
invalid/encoding/bad-codepoint.toml
invalid/encoding/bad-utf8-at-end.toml
invalid/encoding/bad-utf8-in-comment.toml
Expand Down Expand Up @@ -236,6 +237,7 @@ invalid/local-date/month-under.toml
invalid/local-date/no-leads.toml
invalid/local-date/no-leads-with-milli.toml
invalid/local-date/trailing-t.toml
invalid/local-date/y10k.toml
invalid/local-datetime/feb-29.toml
invalid/local-datetime/feb-30.toml
invalid/local-datetime/hour-over.toml
Expand All @@ -249,6 +251,7 @@ invalid/local-datetime/no-leads-with-milli.toml
invalid/local-datetime/no-t.toml
invalid/local-datetime/second-over.toml
invalid/local-datetime/time-no-leads.toml
invalid/local-datetime/y10k.toml
invalid/local-time/hour-over.toml
invalid/local-time/minute-over.toml
invalid/local-time/second-over.toml
Expand Down
2 changes: 2 additions & 0 deletions tests/invalid/datetime/y10k.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Maximum RFC3399 year is 9999.
d = 10000-01-01 00:00:00z
2 changes: 2 additions & 0 deletions tests/invalid/local-date/y10k.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Maximum RFC3399 year is 9999.
d = 10000-01-01
2 changes: 2 additions & 0 deletions tests/invalid/local-datetime/y10k.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Maximum RFC3399 year is 9999.
d = 10000-01-01 00:00:00

0 comments on commit d45be36

Please sign in to comment.