Skip to content

Instantly share code, notes, and snippets.

Created February 24, 2011 07:23
Show Gist options
  • Save anonymous/841882 to your computer and use it in GitHub Desktop.
Save anonymous/841882 to your computer and use it in GitHub Desktop.
$ cat /tmp/foo.t
use Test::More;
plan tests => 1;
my $f = 1;
note(sprintf("Testing: %s", $f++));
diag(sprintf("Testing: %s", $f++));
ok 1;
$ prove /tmp/foo.t
# Testing: 2
/tmp/foo.t .. ok
All tests successful.
Files=1, Tests=1, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.01 cusr 0.00 csys = 0.04 CPU)
Result: PASS
$ prove -v /tmp/foo.t
# Testing: 2
ok 1
ok
All tests successful.
Files=1, Tests=1, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.01 cusr 0.00 csys = 0.03 CPU)
Result: PASS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment