startest/assertion_error

Types

pub type AssertionError {
  AssertionError(
    message: String,
    actual: String,
    expected: String,
  )
}

Constructors

  • AssertionError(message: String, actual: String, expected: String)
pub type RescuedAssertionError {
  RescuedAssertionError(message: String)
}

Constructors

  • RescuedAssertionError(message: String)

Functions

pub fn raise(error: AssertionError) -> a

Raises an AssertionError.

Intended for use by matchers to cause a test to fail.

Search Document