Documentation for sub
subtest assembled from the following types:
multi sub subtest(Pair )multi sub subtest(, )multi sub subtest(, = '')
subtest function executes the given block, consisting of usually more than one test, possibly including a
done-testing, and counts as one test in
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' =>