Skip to main content

Module testing

Module testing 

Source
Expand description

Testing utilities

Windjammer’s std::testing module maps to these functions.

Functions§

assert
Assert that a condition is true
assert_eq
Assert that two values are equal
assert_ne
Assert that two values are not equal
fail
Fail a test with a message
should_panic
Check if code panics