Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gouguoyin committed Nov 7, 2024
1 parent 056de62 commit 0dc87e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions difference_unit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -872,13 +872,13 @@ func TestCarbon_DiffInDuration(t *testing.T) {
name: "case6",
carbon1: now.AddMonthsNoOverflow(1),
carbon2: now,
want: "-744h0m0s",
want: "-720h0m0s",
},
{
name: "case7",
carbon1: now.SubMonthsNoOverflow(1),
carbon2: now,
want: "720h0m0s",
want: "744h0m0s",
},

{
Expand Down Expand Up @@ -944,13 +944,13 @@ func TestCarbon_DiffAbsInDuration(t *testing.T) {
name: "case6",
carbon1: now.AddMonthsNoOverflow(1),
carbon2: now,
want: "744h0m0s",
want: "720h0m0s",
},
{
name: "case7",
carbon1: now.SubMonthsNoOverflow(1),
carbon2: now,
want: "720h0m0s",
want: "744h0m0s",
},

{
Expand Down

0 comments on commit 0dc87e5

Please sign in to comment.