AssertionsHelper

org.scalatest.Assertions.AssertionsHelper

Helper class used by code generated by the assert macro.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def macroAssert(bool: Bool, clue: Any, pos: Position): Assertion

Assert that the passed in Bool is true, else fail with TestFailedException.

Assert that the passed in Bool is true, else fail with TestFailedException.

Value parameters

bool

the Bool to assert for

clue

optional clue to be included in TestFailedException's error message when assertion failed

Attributes

def macroAssume(bool: Bool, clue: Any, pos: Position): Assertion

Assume that the passed in Bool is true, else throw TestCanceledException.

Assume that the passed in Bool is true, else throw TestCanceledException.

Value parameters

bool

the Bool to assume for

clue

optional clue to be included in TestCanceledException's error message when assertion failed

Attributes