class DiagrammedAssertionsHelper extends AnyRef
Helper class used by code generated by the overriden assert
macro.
- Alphabetic
- By Inheritance
- DiagrammedAssertionsHelper
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new DiagrammedAssertionsHelper()
Value Members
-
def
macroAssert(bool: DiagrammedExpr[Boolean], clue: Any, sourceText: String, pos: Position): Assertion
Assert that the passed in
Bool
istrue
, else fail withTestFailedException
with error message that include a diagram showing expression values.Assert that the passed in
Bool
istrue
, else fail withTestFailedException
with error message that include a diagram showing expression values.- 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
istrue
, else throwTestCanceledException
with error message that include a diagram showing expression values.Assume that the passed in
Bool
istrue
, else throwTestCanceledException
with error message that include a diagram showing expression values.- bool
the
Bool
to assume for- clue
optional clue to be included in
TestCanceledException
's error message when assertion failed