Source

libtap / libtap / tests / plan / too-many-plans / test.pl

#!/usr/bin/perl

use warnings;
use strict;

use Test::More;

my $rc = 0;

$rc = plan tests => 1;
diag("Returned: " . sprintf("%d", $rc));

$rc = ok(1);
diag("Returned: $rc");

$rc = plan tests => 1;
diag("Returned: $rc");

$rc = ok(0);
diag("Returned: $rc");