Created
November 23, 2020 20:38
-
-
Save exodist/48438be855553de1a2e3d9472a017d81 to your computer and use it in GitHub Desktop.
test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perl test.pl | |
# Seeded srand with seed '20201123' from local date. | |
ok 1 - hi | |
# foo | |
ok 2 - thesubtest { | |
ok 1 - hi | |
# foo | |
1..1 | |
} | |
1..2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Test2::V0; | |
sub myok { | |
my $ctx = Test2::API::context(); | |
$ctx->pass("hi"); | |
$ctx->note("foo"); | |
$ctx->release; | |
} | |
myok(); | |
subtest thesubtest => sub { | |
myok(); | |
}; | |
done_testing; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment