Skip to content

Commit

Permalink
Add unit testing case
Browse files Browse the repository at this point in the history
  • Loading branch information
gouguoyin committed Nov 29, 2024
1 parent b303083 commit bdb0cf0
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion comparer_unit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,26 @@ func TestCarbon_IsZero(t *testing.T) {
},
{
name: "case5",
carbon: Parse("2020-08-00 00:00:00"),
want: true,
},
{
name: "case6",
carbon: Parse("2020-00-05 00:00:00"),
want: true,
},
{
name: "case7",
carbon: Parse("2020-00-00 00:00:00"),
want: true,
},
{
name: "case8",
carbon: Parse("2020-08-05 00:00:00"),
want: false,
},
{
name: "case6",
name: "case9",
carbon: Parse("0000-01-01 13:14:15"),
want: false,
},
Expand Down

0 comments on commit bdb0cf0

Please sign in to comment.