File: common.t

package info (click to toggle)
libtest-most-perl 0.34-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 192 kB
  • ctags: 25
  • sloc: perl: 541; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 452 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl

use lib 'lib', 't/lib';
use Test::Most tests => 6;
use OurTester qw($DIED dies);

ok 1, 'Normal calls to ok() should succeed';
is 2, 2, '... as should all passing tests';
eq_or_diff [ 3, 4 ], [ 3, 4 ], '... and Test::Differences tests';
dies_ok {die} '... and Test::Exception tests';
cmp_deeply [ 3, 4 ], [ 3, 4 ], '... and Test::Deep tests';
warnings_are { warn 'Hi!' } 'Hi!', '... and Test::Warn tests';
explain +Test::Builder->new;