summaryrefslogtreecommitdiff
path: root/round_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'round_test.go')
-rw-r--r--round_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/round_test.go b/round_test.go
index adabd96..13a9051 100644
--- a/round_test.go
+++ b/round_test.go
@@ -24,7 +24,7 @@ func TestRound(t *testing.T) {
}
for _, tc := range testCases {
t.Run(fmt.Sprint(tc.in), func(t *testing.T) {
- if r := Round(tc.in); r != tc.out {
+ if r := Round(tc.in, 2); r != tc.out {
t.Errorf("got %v, want %v", r, tc.out)
}
})
@@ -33,6 +33,6 @@ func TestRound(t *testing.T) {
func BenchmarkRound(b *testing.B) {
for i := 0; i < b.N; i++ {
- Round(0.333)
+ Round(0.333, 2)
}
}