Skip to content

Commit

Permalink
Add lint:ignore to make staticcheck happy
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Aug 5, 2024
1 parent c134461 commit 96ddb50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ func TestRat(t *testing.T) {
ru, _ := NewRat[uint32](1, 3)
s := fmt.Sprintf("%.2f", ru)
c.Assert(s, qt.Equals, "0.333333")
//lint:ignore S1025 fmt.Sprintf call is used for testing.
s = fmt.Sprintf("%s", ru)
c.Assert(s, qt.Equals, "1/3")
})
Expand Down

0 comments on commit 96ddb50

Please sign in to comment.