Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bnkamalesh committed Oct 6, 2024
1 parent f8205fa commit 2a9bb7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestAdd(t *testing.T) {
cur1.Add(*cur2)

Check failure on line 36 in operations_test.go

View workflow job for this annotation

GitHub Actions / build

Error return value of `cur1.Add` is not checked (errcheck)
asserter.Equal(21, cur1.Main)
asserter.Equal(98, cur1.Fractional)
asserter.Equal(21.91, cur1.Float64())
asserter.Equal(21.98, cur1.Float64())

cur1.PrefixSymbol = true
asserter.Equal("₹21.98", cur1.String())
Expand Down Expand Up @@ -203,7 +203,7 @@ func TestPercent(t *testing.T) {
asserter.Equal(0.55, cur2.Float64())

cur2.PrefixSymbol = true
asserter.Equal("₹0.55", cur2.Fractional)
asserter.Equal("₹0.55", cur2.String())
}

func TestDivideRetain(t *testing.T) {
Expand Down

0 comments on commit 2a9bb7d

Please sign in to comment.