File: 10-test-html-lint.t

package info (click to toggle)
libhtml-lint-perl 2.32%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 356 kB
  • sloc: perl: 1,739; makefile: 6
file content (15 lines) | stat: -rw-r--r-- 301 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!perl -Tw

use warnings;
use strict;

use Test::More tests => 2;
use Test::HTML::Lint;

my $chunk = '<html><head></head><body><title>A fine chunk of code</title></body></html>';

TODO: { # undef should fail
    local $TODO = 'This test should NOT succeed';
    html_ok( undef );
}
html_ok( $chunk );