Skip to content

Commit

Permalink
TestCounter_Reset(): check c.Reset() result
Browse files Browse the repository at this point in the history
Co-authored-by: alvar <[email protected]>
  • Loading branch information
Al2Klimov and oxzi authored Aug 16, 2024
1 parent 9590392 commit 3d42781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion com/counter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestCounter_Reset(t *testing.T) {
var c Counter

c.Add(42)
c.Reset()
require.Equal(t, uint64(42), c.Reset(), "unexpected reset value")

require.Equal(t, uint64(0), c.Val(), "unexpected value")
require.Equal(t, uint64(42), c.Total(), "unexpected total")
Expand Down

0 comments on commit 3d42781

Please sign in to comment.