DiagrammedAssertionsHelper

Helper class used by code generated by the overriden assert macro.

class Object
trait Matchable
class Any

Value members

Concrete methods

def macroAssert(bool: DiagrammedExpr[Boolean], clue: Any, sourceText: String, pos: Position): Assertion

Assert that the passed in Bool is true, else fail with TestFailedException with error message that include a diagram showing expression values.

Assert that the passed in Bool is true, else fail with TestFailedException with error message that include a diagram showing expression values.

Value parameters:
bool

the Bool to assert for

clue

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

def macroAssume(bool: DiagrammedExpr[Boolean], clue: Any, sourceText: String, pos: Position): Assertion

Assume that the passed in Bool is true, else throw TestCanceledException with error message that include a diagram showing expression values.

Assume that the passed in Bool is true, else throw TestCanceledException with error message that include a diagram showing expression values.

Value parameters:
bool

the Bool to assume for

clue

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