Skip to content

Commit

Permalink
view_test.go: Test zero-minute key mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
jnd-au committed Oct 25, 2024
1 parent 6055a4d commit 498e6ca
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
37 changes: 37 additions & 0 deletions testdata/view/test-fractional-timezone-offsets.txt
Original file line number Diff line number Diff line change
Expand Up @@ -227,3 +227,40 @@ Check the following:
πŸ•˜ (-03) America/Argentina/ComodRivadavia 21:29, Sat Nov 04, 2017
21 22 23 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
πŸ“† Sun 05
-- Zero minutes (2017-11-05T00:00:00Z = 1509840000) --

What time is it?

πŸ•› (UTC) UTC 00:00, Sun Nov 05, 2017
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
πŸ“† Sun 05
πŸ• (CET) Europe/Paris 01:00, Sun Nov 05, 2017
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0
πŸ“† Mon 06
πŸ•‘ (IST) Israel 02:00, Sun Nov 05, 2017
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0 1
πŸ“† Mon 06
πŸ•” (IST) Asia/Calcutta 05:30, Sun Nov 05, 2017
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0 1 2 3 4
πŸ“† Mon 06
πŸ•— (+0845) Australia/Eucla 08:45, Sun Nov 05, 2017
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0 1 2 3 4 5 6 7
πŸ“† Mon 06
πŸ•™ (AEDT) Australia/Sydney 11:00, Sun Nov 05, 2017
11 12 13 14 15 16 17 18 19 20 21 22 23 0 1 2 3 4 5 6 7 8 9 10
πŸ“† Mon 06
πŸ•‘ (+14) Pacific/Kiritimati 14:00, Sun Nov 05, 2017
14 15 16 17 18 19 20 21 22 23 0 1 2 3 4 5 6 7 8 9 10 11 12 13
πŸ“† Mon 06
πŸ•‘ (HST) Pacific/Honolulu 14:00, Sat Nov 04, 2017
14 15 16 17 18 19 20 21 22 23 0 1 2 3 4 5 6 7 8 9 10 11 12 13
πŸ“† Sun 05
πŸ•– (CDT) US/Central 19:00, Sat Nov 04, 2017
19 20 21 22 23 0 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
πŸ“† Sun 05β‰ DST
πŸ•— (CDT) Cuba 20:00, Sat Nov 04, 2017
20 21 22 23 0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
πŸ“† Sun 05β‰ DST
πŸ•˜ (-03) America/Argentina/ComodRivadavia 21:00, Sat Nov 04, 2017
21 22 23 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
πŸ“† Sun 05
1 change: 1 addition & 0 deletions view_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ func TestFractionalTimezoneOffsets(t *testing.T) {
{"Return to start", "2017-11-05T00:29:02Z", "HLpn+++++++++++++++h"},
{"Minus 1 hour, date changed", "2017-11-04T23:29:02Z", "h"},
{"Return to start", "2017-11-05T00:29:02Z", "l"},
{"Zero minutes", "2017-11-05T00:00:00Z", "0"},
}

start, err := time.Parse(time.RFC3339, tests[0].datetime)
Expand Down

0 comments on commit 498e6ca

Please sign in to comment.