mirror of
https://gitee.com/dromara/carbon.git
synced 2024-11-29 18:57:37 +08:00
增加单元测试场景
This commit is contained in:
parent
0d846c9e3c
commit
db9c0bef58
@ -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,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user