Skip to main content

function

assert_false

assert_false(val: Bool, msg: String = "condition was unexpectedly True")

Asserts that the input value is False. If it is not then an Error is raised.

Args:

  • val (Bool): The value to assert to be False.
  • msg (String): The message to be printed if the assertion fails.

Raises:

An Error with the provided message if assert fails and None otherwise.