{-
Module: Assertion.
Some useful functions to write tests (only for integers).
-}
module Util.Assertion where
import Test.HUnit
Assertion that checks for equality with all smaller values.
assertLessThan :: String -> Int -> Int -> Assertion
assertLessThan s x y = assertBool s (x < y)– Assertion that checks for equality with all smaller or equal values.assertLessThanEq :: String -> Int -> Int -> Assertion
assertLessThanEq s x y = assertBool s (x <= y)

![[SOLVED] CS {-](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip.jpg)

![[SOLVED] COP 3223 Program #3: Counting Pez](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip-1200x1200.jpg)
Reviews
There are no reviews yet.