Skip to content

Commit bdb0cf0

Browse files
committed
Add unit testing case
1 parent b303083 commit bdb0cf0

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

comparer_unit_test.go

+16-1
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,26 @@ func TestCarbon_IsZero(t *testing.T) {
8080
},
8181
{
8282
name: "case5",
83+
carbon: Parse("2020-08-00 00:00:00"),
84+
want: true,
85+
},
86+
{
87+
name: "case6",
88+
carbon: Parse("2020-00-05 00:00:00"),
89+
want: true,
90+
},
91+
{
92+
name: "case7",
93+
carbon: Parse("2020-00-00 00:00:00"),
94+
want: true,
95+
},
96+
{
97+
name: "case8",
8398
carbon: Parse("2020-08-05 00:00:00"),
8499
want: false,
85100
},
86101
{
87-
name: "case6",
102+
name: "case9",
88103
carbon: Parse("0000-01-01 13:14:15"),
89104
want: false,
90105
},

0 commit comments

Comments
 (0)