X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;ds=sidebyside;f=src%2FTests%2FTetrahedron.hs;h=bc13876131ab952305ffbcb3d37656933f6a3a33;hb=aebb9084065fab1f1d7714a5da49032a88150685;hp=98edf63b782af79552d76935552694ec1498590d;hpb=cb12813c94e3ddb73e84d2b1e77667fe3ca016a5;p=spline3.git diff --git a/src/Tests/Tetrahedron.hs b/src/Tests/Tetrahedron.hs index 98edf63..bc13876 100644 --- a/src/Tests/Tetrahedron.hs +++ b/src/Tests/Tetrahedron.hs @@ -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