增加单元测试场景

This commit is contained in:
gouguoyin 2024-11-26 11:48:19 +08:00
parent cbece4da2d
commit 90d1c872a4

View File

@ -1110,6 +1110,12 @@ func TestCarbon_Issue255(t *testing.T) {
end: Parse("2018-08-28 13:14:59"),
want: -23,
},
{
name: "case10",
start: Parse("2018-08-28 13:14:59"),
end: Parse("2020-08-05 13:14:15"),
want: 23,
},
}
for _, tt := range tests {