where
import Control.Monad (unless)
-import Test.HUnit
+import Test.HUnit (Assertion,
+ assertBool,
+ assertFailure)
-import Comparisons
-import Point
+import Comparisons ((~=))
+import Point (Point, is_close)
-- | An HUnit assertion that wraps the almost_equals function. Stolen
-- from the definition of 'assertEqual' in Test\/HUnit\/Base.hs.
where msg = (if null preface then "" else preface ++ "\n") ++
"expected: " ++ show expected ++ "\n but got: " ++ show actual
+
-- | It's asinine that this doesn't exist already.
assertTrue :: String -> Bool -> Assertion
assertTrue = assertBool