summaryrefslogtreecommitdiff
path: root/round_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'round_test.go')
-rw-r--r--round_test.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/round_test.go b/round_test.go
index 6033156..7cacc98 100644
--- a/round_test.go
+++ b/round_test.go
@@ -6,32 +6,6 @@ import (
"testing"
)
-func TestRound2(t *testing.T) {
- testCases := []struct {
- in, out float64
- }{
- {0.0, 0.0},
- {0.3, 0.3},
- {0.333, 0.33},
- {0.334, 0.33},
- {0.335, 0.34},
- {-0.333, -0.33},
- {-0.334, -0.33},
- {-0.335, -0.34},
- {495.17999999999995, 495.18},
- {-495.17999999999995, -495.18},
- {0.115, 0.12},
- {-0.115, -0.12},
- }
- for _, tc := range testCases {
- t.Run(fmt.Sprint(tc.in), func(t *testing.T) {
- if r := RoundN(tc.in, 2); r != tc.out {
- t.Errorf("got %v, want %v", r, tc.out)
- }
- })
- }
-}
-
func TestRound(t *testing.T) {
negZero := math.Copysign(0, -1)
testCases := []struct {