This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Test::Simple/More/Builder/Tutorial 0.41
[perl5.git] / lib / Test / Simple / t / Builder.t
1 #!/usr/bin/perl -w
2
3 BEGIN {
4     if( $ENV{PERL_CORE} ) {
5         chdir 't';
6         @INC = '../lib';
7     }
8 }
9
10 use Test::Builder;
11 my $Test = Test::Builder->new;
12
13 $Test->plan( tests => 4 );
14
15 my $default_lvl = $Test->level;
16 $Test->level(0);
17
18 $Test->ok( 1,  'compiled and new()' );
19 $Test->ok( $default_lvl == 1,      'level()' );
20
21 $Test->is_eq('foo', 'foo',      'is_eq');
22 $Test->is_num('23.0', '23',     'is_num');
23