function
assert_true
assert_true(val: Bool, msg: String = "condition was unexpectedly False")
Asserts that the input value is True. If it is not then an Error is raised.
Args:
- val (
Bool
): The value to assert to be True. - msg (
String
): The message to be printed if the assertion fails.
Raises:
An Error with the provided message if assert fails and None
otherwise.