You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cat foo.t
#!/var/perl/bin/perl
use warnings;
use strict;
use Test2::V0;
use Test2::Plugin::SourceDiag;
plan 2;
is( 'war', 'peace', 'Is war peace?' );
is( 'freedom', 'slavery' );
gives:
$ prove -v foo.t
[15:51:11] foo.t ..
# Seeded srand with seed '20170627' from local date.
1..2
not ok 1 - Is war peace?
# Failure source code:
# ------------
# 11: is( 'war', 'peace', 'Is war peace?' );
# ------------
# Failed test 'Is war peace?'
# at foo.t line 11.
# +-----+----+-------+
# | GOT | OP | CHECK |
# +-----+----+-------+
# | war | eq | peace |
# +-----+----+-------+
not ok 2 - is( 'freedom', 'slavery' );
# Failed test 'is( 'freedom', 'slavery' );'
# at foo.t line 13.
# +---------+----+---------+
# | GOT | OP | CHECK |
# +---------+----+---------+
# | freedom | eq | slavery |
# +---------+----+---------+
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests
[15:51:11]
Test Summary Report
-------------------
foo.t (Wstat: 512 Tests: 2 Failed: 2)
Failed tests: 1-2
Non-zero exit status: 2
Files=1, Tests=2, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.14 cusr 0.01 csys = 0.18 CPU)
Result: FAIL
The text was updated successfully, but these errors were encountered:
gives:
The text was updated successfully, but these errors were encountered: