File: import_bail.t

package info (click to toggle)
libtest-most-perl 0.38-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 192 kB
  • sloc: perl: 543; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 361 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/perl

use lib 'lib',            't/lib';
use Test::Most 'bail', tests => 7;
use OurTester qw($BAILED bails);

ok 1, 'Normal calls to ok() should succeed';
is 2, 2, '... as should all passing tests';
bails { is_deeply( [3], [4] ) } '... but failing tests should bail';
ok 4, 'Subsequent calls to ok() should be fine';
ok !$BAILED, '... and not bail';