]> gitweb.michael.orlitzky.com - spline3.git/blobdiff - src/Tests/Tetrahedron.hs
Move the almost_equals function into the Comparisons module.
[spline3.git] / src / Tests / Tetrahedron.hs
index 98edf63b782af79552d76935552694ec1498590d..bc13876131ab952305ffbcb3d37656933f6a3a33 100644 (file)
@@ -4,6 +4,7 @@ where
 import Test.HUnit
 import Test.QuickCheck
 
+import Comparisons
 import Cube
 import Point
 import Tests.Cube()
@@ -19,13 +20,6 @@ instance Arbitrary Tetrahedron where
       rnd_v3 <- arbitrary :: Gen Point
       return (Tetrahedron rnd_c0 rnd_v0 rnd_v1 rnd_v2 rnd_v3)
 
-almost_equals :: Double -> Double -> Bool
-almost_equals x y = (abs (x - y)) < 0.0001
-
-(~=) :: Double -> Double -> Bool
-(~=) = almost_equals
-
-
 -- HUnit Tests
 
 -- Since p0, p1, p2 are in clockwise order, we expect the volume here