elixir_script v0.32.1 ElixirScript.Test.Assertions View Source
Defines assertions for use in ElixirScript test. These are a subset of ExUnit.Assertions
Link to this section Summary
Functions
Asserts its argument is a truthy value
Asserts value is true, displaying the given message otherwise
Asserts that value1 and value2 differ by no more than delta
Asserts the exception is raised during function execution.
Returns the rescued exception, fails otherwise
Fails with a message
A negative assertion, expects the expression to be false or nil
Asserts value is nil or false (that is, value is not truthy)
Asserts that value1 and value2 are not within delta
Link to this section Functions
Asserts its argument is a truthy value
Asserts value is true, displaying the given message otherwise.
Asserts that value1 and value2 differ by no more than delta
Asserts the exception is raised during function execution.
Returns the rescued exception, fails otherwise.
Asserts the exception is raised during function execution with
the expected message, which can be a Regex or an exact String.
Returns the rescued exception, fails otherwise.
Fails with a message.
A negative assertion, expects the expression to be false or nil.
Asserts value is nil or false (that is, value is not truthy).
Asserts that value1 and value2 are not within delta