Module Junit/Assert

This module is undocumented. This is a list of its definitions.

assertEquals :: AssertEquals a => String -> a -> a -> <Proc> ()

assertEquals message expected actual fails with the given message if the two values are not equal.

assertEqualsTolerance :: AssertEqualsTolerance a => String -> a -> a -> a -> <Proc> ()

assertEqualsTolerance message expected actual tolerance fails with the given message if the two values differ by more than tolerance.

assertFalse :: String -> Boolean -> <Proc> ()

Fails with the given message if the given condition is True.

assertMultiLineStringEquals :: String -> String -> String -> <Proc> ()

assertMultiLineStringEquals message expected actual compares the two strings line by line and fails with the given message and the number of the first differing line if they are not equal.

assertObjectsEquals :: String -> a -> a -> <Proc> ()

assertObjectsEquals message expected actual fails with the given message if the two values are not equal.

assertTrue :: String -> Boolean -> <Proc> ()

Fails with the given message if the given condition is False.