File tree 1 file changed +0
-14
lines changed
1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,6 @@ testOrd x y ord =
32
32
(" (compare " <> show x <> " " <> show y <> " ) is not equal to " <> show ord)
33
33
$ (compare x y) == ord
34
34
35
- nan :: Number
36
- nan = 0.0 /0.0
37
-
38
35
plusInfinity :: Number
39
36
plusInfinity = 1.0 /0.0
40
37
@@ -43,8 +40,6 @@ minusInfinity = -1.0/0.0
43
40
44
41
testOrderings :: AlmostEff
45
42
testOrderings = do
46
- assert " NaN shouldn't be equal to itself" $ nan /= nan
47
- assert " NaN shouldn't be equal to itself" $ (compare nan nan) /= EQ
48
43
testOrd 1.0 2.0 LT
49
44
testOrd 2.0 1.0 GT
50
45
testOrd 1.0 (-2.0 ) GT
@@ -53,15 +48,6 @@ testOrderings = do
53
48
testOrd minusInfinity 0.0 LT
54
49
testOrd plusInfinity 0.0 GT
55
50
testOrd plusInfinity minusInfinity GT
56
- testOrd 1.0 nan GT
57
- testOrd nan 1.0 GT
58
- testOrd nan plusInfinity GT
59
- testOrd plusInfinity nan GT
60
- assert " 1 > NaN should be false" $ (1.0 > nan) == false
61
- assert " 1 < NaN should be false" $ (1.0 < nan) == false
62
- assert " NaN > 1 should be false" $ (nan > 1.0 ) == false
63
- assert " NaN < 1 should be false" $ (nan < 1.0 ) == false
64
- assert " NaN == 1 should be false" $ nan /= 1.0
65
51
testOrd (1 / 0 ) 0 EQ
66
52
testOrd (mod 1 0 ) 0 EQ
67
53
testOrd ' a' ' b' LT
You can’t perform that action at this time.
0 commit comments