I test my code via Test2::V0
is $result, 'value', 'Test OK';
Can I check that last test is failed?
In mojolicious, for example, there is ->or(sub{ ... })
Does Test2::V0
have something similar?
I test my code via Test2::V0
is $result, 'value', 'Test OK';
Can I check that last test is failed?
In mojolicious, for example, there is ->or(sub{ ... })
Does Test2::V0
have something similar?
Copyright © 2021 Jogjafile Inc.
Test functions have return values -- a true value or a false value depending on the outcome of the test -- which can be captured or checked.