/// Assertions for `louise test`. Tests are functions marked `@test` (in any
/// module, next to the code they test); `@should_panic("text")` expects a
/// panic. A failed assertion (any panic) fails a test.
pub fn assert :: condition: Bool message: String -> ()
{
if !condition
{
panic ("assertion failed: " <> message)
}
}
pub fn assert_equal :: actual: a expected: a -> () where Eq, Show
{
if actual != expected
{
panic ("expected " <> show expected <> ", got " <> show actual)
}
}