Codebase list libtest-pod-perl / upstream/1.50 t / cut-outside-block.t
upstream/1.50

Tree @upstream/1.50 (Download .tar.gz)

cut-outside-block.t @upstream/1.50raw · history · blame

#!perl -T

use strict;

use Test::Builder::Tester tests => 2;
use Test::More;

BEGIN {
    use_ok( 'Test::Pod' );
}

BAD: {
    my $file = 't/cut-outside-block.pod';
    test_out( "not ok 1 - POD test for $file" );
    pod_file_ok( $file );
    test_fail(-1);
    test_diag(
	"$file (5): =cut found outside a pod block.  Skipping to next block."
    );
    test_test( "$file is bad" );
}