File: item-ordering.t

package info (click to toggle)
libtest-pod-perl 1.51-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 192 kB
  • ctags: 10
  • sloc: perl: 264; makefile: 2
file content (34 lines) | stat: -rw-r--r-- 1,317 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!perl -T

use strict;

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

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

my $file = 't/item-ordering.pod';
test_out( "not ok 1 - POD test for $file" );
pod_file_ok( $file );
test_fail(-1);
test_diag(
    ( Pod::Simple->VERSION == 3.24 ? (
        "$file (17): Expected text matching /\\s+[^\\*\\d]/ after '=item'",
        "$file (21): Expected text matching /\\s+[^\\*\\d]/ after '=item'",
        "$file (32): You can't have =items (as at line 36) unless the first thing after the =over is an =item",
    ) : Pod::Simple->VERSION >= 3.27 ? (
        "$file (17): Expected text after =item, not a number",
        "$file (21): Expected text after =item, not a number",
        "$file (32): You can't have =items (as at line 36) unless the first thing after the =over is an =item",
        "$file (32): =over without closing =back",
    ) : Pod::Simple->VERSION >= 3.25 ? (
        "$file (17): Expected text after =item, not a number",
        "$file (21): Expected text after =item, not a number",
        "$file (32): You can't have =items (as at line 36) unless the first thing after the =over is an =item",
    ) : (
        "$file (32): You can't have =items (as at line 36) unless the first thing after the =over is an =item",
    ))
);
test_test( "$file is bad" );