ResultAssertions
Core assertion functions for Result.
These are framework-agnostic - they throw exceptions on failure. Test frameworks can catch these and convert to their assertion format.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ResultAssertions.type
Members list
Value members
Concrete methods
Assert that the budget equals the expected budget exactly.
Assert that the budget equals the expected budget exactly.
Attributes
Assert that the budget is within the specified limits.
Assert that the budget is within the specified limits.
Value parameters
- maxBudget
-
Maximum allowed budget
- result
-
The evaluation result
Attributes
- Throws
-
BudgetAssertionError
if budget exceeds limits
Assert that the result is a failure.
Assert that the result is a failure.
Attributes
Assert that the result is a failure with a specific message.
Assert that the result is a failure with a specific message.
Attributes
Assert that the result matches the expected outcome.
Assert that the result matches the expected outcome.
Value parameters
- expected
-
The expected outcome
- result
-
The actual evaluation result
Attributes
- Throws
-
AssertionError
if assertion fails
Assert that the result is a success.
Assert that the result is a success.
Attributes
Assert that the result term equals the expected term (alpha-equivalent).
Assert that the result term equals the expected term (alpha-equivalent).