File: subtest.t

package info (click to toggle)
libtest-simple-perl 1.302210-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,972 kB
  • sloc: perl: 19,892; makefile: 7
file content (19 lines) | stat: -rw-r--r-- 348 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env perl

use strict;
use warnings;

use lib '../lib';
use Test::More tests => 3;

ok 1;
subtest 'some name' => sub {
    my $num_tests = 2 + int( rand(3) );
    plan tests => $num_tests;
    ok 1 for 1 .. $num_tests - 1;
    subtest 'some name' => sub {
        plan 'no_plan';
        ok 1 for 1 .. 2 + int( rand(3) );
    };
};
ok 1;