X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FAssertions.hs;h=33b79b9b8ba68bb3dabc2002ad284498705bc335;hb=02a34bf79286cd63edcc62e8610fe045feb1dd68;hp=b51c25286491c90a506882a78373af6f1f80cd94;hpb=00a4dc471c4dc1c48c6012cc897c37d14a2f1644;p=spline3.git diff --git a/src/Assertions.hs b/src/Assertions.hs index b51c252..33b79b9 100644 --- a/src/Assertions.hs +++ b/src/Assertions.hs @@ -26,3 +26,7 @@ assertClose preface expected actual = unless (actual `is_close` expected) (assertFailure msg) 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