Created
August 29, 2018 17:33
-
-
Save wolfsage/dc48e2870dd3b617b8cee2b91df2302e to your computer and use it in GitHub Desktop.
bug.txt
This file contains 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
alh@hyrule:~/pobox/git$ cat pass.t | |
use Test2::API qw(run_subtest); | |
use Test::More; | |
run_subtest("foo", sub { | |
local $TODO = "what"; | |
ok(1, "test"); | |
}); | |
done_testing; | |
alh@hyrule:~/pobox/git$ cat fail.t | |
use Test2::API qw(run_subtest); | |
use Test::More; | |
run_subtest("foo", sub { | |
local $TODO = "what"; | |
ok(0, "test"); | |
}); | |
done_testing; | |
alh@hyrule:~/pobox/git$ perl pass.t | |
# foo | |
ok 1 - test # | |
1..1 | |
ok 1 - foo | |
1..1 | |
alh@hyrule:~/pobox/git$ perl fail.t | |
# foo | |
not ok 1 - test # TODO | |
# Failed (TODO) test 'test' | |
# at fail.t line 6. | |
1..1 | |
ok 1 - foo | |
1..1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment