Skip to content

Instantly share code, notes, and snippets.

@exodist
Created November 23, 2020 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save exodist/48438be855553de1a2e3d9472a017d81 to your computer and use it in GitHub Desktop.
Save exodist/48438be855553de1a2e3d9472a017d81 to your computer and use it in GitHub Desktop.
test
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
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