Skip to content

Commit

Permalink
Add IsAMIsPM methods
Browse files Browse the repository at this point in the history
  • Loading branch information
gouguoyin committed Jan 11, 2024
1 parent ecbe3f7 commit 973d8b6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions comparer_unit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@ func TestCarbon_IsAM(t *testing.T) {
3: {"00:00:00", false},
4: {"0000-00-00 00:00:00", false},

5: {"2020-08-05 08:00:00", true},
6: {"2020-08-05 12:00:00", false},
7: {"2020-08-05 13:00:00", false},
5: {"2020-08-05 00:00:00", true},
6: {"2020-08-05 08:00:00", true},
7: {"2020-08-05 12:00:00", false},
8: {"2020-08-05 13:00:00", false},
}

for index, test := range tests {
Expand All @@ -146,9 +147,10 @@ func TestCarbon_IsPM(t *testing.T) {
3: {"00:00:00", false},
4: {"0000-00-00 00:00:00", false},

5: {"2020-08-05 08:00:00", false},
6: {"2020-08-05 12:00:00", true},
7: {"2020-08-05 13:00:00", true},
5: {"2020-08-05 00:00:00", false},
6: {"2020-08-05 08:00:00", false},
7: {"2020-08-05 12:00:00", true},
8: {"2020-08-05 13:00:00", true},
}

for index, test := range tests {
Expand Down

0 comments on commit 973d8b6

Please sign in to comment.