Skip to content

Commit

Permalink
Test that digits in local-time must always have a width of 2
Browse files Browse the repository at this point in the history
  • Loading branch information
arp242 committed Nov 25, 2021
1 parent 850bb72 commit 2216c0b
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/invalid/datetime/impossible-date.toml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# No months with 50 days.
d = 2006-01-50T00:00:00Z
1 change: 1 addition & 0 deletions tests/invalid/datetime/no-leads-with-milli.toml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# Day "5" instead of "05"; the leading zero is required.
with-milli = 1987-07-5T17:45:00.12Z
1 change: 1 addition & 0 deletions tests/invalid/datetime/no-leads.toml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# Month "7" instead of "07"; the leading zero is required.
no-leads = 1987-7-05T17:45:00Z
1 change: 1 addition & 0 deletions tests/invalid/datetime/no-secs.toml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# No seconds in time.
no-secs = 1987-07-05T17:45Z
1 change: 1 addition & 0 deletions tests/invalid/datetime/no-t.toml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# No "t" or "T" between the date and time.
no-t = 1987-07-0517:45:00Z
2 changes: 2 additions & 0 deletions tests/invalid/datetime/time-no-leads-2.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Leading 0 is always required.
d = 01:32:0
2 changes: 2 additions & 0 deletions tests/invalid/datetime/time-no-leads.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Leading 0 is always required.
d = 1:32:00
1 change: 1 addition & 0 deletions tests/invalid/datetime/trailing-t.toml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# Date cannot end with trailing T
d = 2006-01-30T

0 comments on commit 2216c0b

Please # to comment.