Std\Test
Simple test assertions — returns (:pass, name) or (:fail, message).
Each assertion returns a symbol-tagged tuple so test runners can collect results programmatically.
Functions
Section titled “Functions”assertEqual : Int -> Int -> (a, b)
Section titled “assertEqual : Int -> Int -> (a, b)”Asserts that expected equals actual.
assertEqual 42 42 # => (:pass, "assertEqual")assertEqual 1 2 # => (:fail, "assertEqual: expected equal values")assertNotEqual : Int -> Int -> (a, b)
Section titled “assertNotEqual : Int -> Int -> (a, b)”Asserts that expected does not equal actual.
assertNotEqual 1 2 # => (:pass, "assertNotEqual")assertTrue : Int -> (a, b)
Section titled “assertTrue : Int -> (a, b)”Asserts that value is true.
assertTrue (1 > 0) # => (:pass, "assertTrue")assertFalse : Int -> (a, b)
Section titled “assertFalse : Int -> (a, b)”Asserts that value is false.
assertFalse (1 > 2) # => (:pass, "assertFalse")assertGreater : Int -> Int -> (a, b)
Section titled “assertGreater : Int -> Int -> (a, b)”Asserts that a > b.
assertGreater 5 3 # => (:pass, "assertGreater")assertLess : Int -> Int -> (a, b)
Section titled “assertLess : Int -> Int -> (a, b)”Asserts that a < b.
assertLess 3 5 # => (:pass, "assertLess")