X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FAssertions.hs;h=b51c25286491c90a506882a78373af6f1f80cd94;hb=60ff027e52faf66c111b3dc2779c3bf5c7dfb6b9;hp=44d793b989be2f4eb83955995adfca976e4cfb9b;hpb=58cf11569acb270995d2de924dda03ef526647e2;p=spline3.git diff --git a/src/Assertions.hs b/src/Assertions.hs index 44d793b..b51c252 100644 --- a/src/Assertions.hs +++ b/src/Assertions.hs @@ -11,7 +11,7 @@ import Comparisons import Point -- | An HUnit assertion that wraps the almost_equals function. Stolen --- from the definition of 'assertEqual' in Test/HUnit/Base.hs. +-- from the definition of 'assertEqual' in Test\/HUnit\/Base.hs. assertAlmostEqual :: String -> Double -> Double -> Assertion assertAlmostEqual preface expected actual = unless (actual ~= expected) (assertFailure msg) @@ -20,7 +20,7 @@ assertAlmostEqual preface expected actual = -- | An HUnit assertion that wraps the is_close function. Stolen --- from the definition of 'assertEqual' in Test/HUnit/Base.hs. +-- from the definition of 'assertEqual' in Test\/HUnit\/Base.hs. assertClose :: String -> Point -> Point -> Assertion assertClose preface expected actual = unless (actual `is_close` expected) (assertFailure msg)