]> git.vpit.fr Git - perl/modules/Test-Leaner.git/blob - t/20-ok.t
9bc35ad8e3debe17859867757bd38332db16d38d
[perl/modules/Test-Leaner.git] / t / 20-ok.t
1 #!perl -T
2
3 use strict;
4 use warnings;
5
6 use Test::Leaner tests => 4 + 1;
7
8 ok 1;
9 ok !!1,    'ok() test with a description';
10 ok 0.001,  'a float is fine too';
11 ok +{},    'a hash ref is fine too';
12
13 my @array = (undef);
14 ok @array, 'ok() forces scalar context';