sub subtest
1 | module Test |
1.1 | (Test) sub subtest |
Documentation for sub subtest
assembled from the following types:
module Test
From Test
(Test) sub subtest
Defined as:
multi sub subtest(Pair )multi sub subtest(, )multi sub subtest(, = '')
The subtest
function executes the given block, consisting of usually more than one test, possibly including a plan
or done-testing
, and counts as one test in plan
, todo
, or skip
counts. It will pass the test only if all tests in the block pass. The function accepts an optional description of the subtest.
is Womblesubtest, "Check Great Uncle Bulgaria";
You can also place the description as the first positional argument, or use a Pair
with description as the key and subtest's code as the value. This can be useful for subtests with large bodies.
subtest 'A bunch of tests',subtest 'Another bunch of tests' =>