!2 '''ensure''' tests that a boolean action returns true. Any exception is signalled in the report.
!**< def
!define test1 (!|fitlibrary.specify.DoFixtureFlowUnderTest|
|'''ensure'''|''a right action''|1|
|'''ensure'''|''a wrong action''|1.5||2.2|
|'''ensure'''|''an exception action''|
)
!define test2 (!|fitlibrary.specify.DoFixtureFlowUnderTest|
|'''ensure'''|''a parse failure''|s|
|'''ensure'''|''a missing method''|
)
**!
|!-fitlibrary.spec.SpecifyFixture-!|
|${test1}|!-
fitlibrary.specify.DoFixtureFlowUnderTest |
ensure |
a right action |
1 |
ensure |
a wrong action |
1.5 |
|
2.2 |
ensure
|
an exception action |
-!|
* While a parse error (such as a number format exception) will be treated as success, a missing method or other such error is reported as such.
|!-fitlibrary.spec.SpecifyFixture-!|
|${test2}|!-
fitlibrary.specify.DoFixtureFlowUnderTest |
ensure |
a parse failure |
s Invalid Number |
ensure Missing method |
a missing method |
-!|