# $Id: text-errors.t,v 1.1 2002/01/01 02:41:53 eagle Exp $
#
# texterrs.t -- Error tests for Pod::Text.
#
# Copyright 2001 by Russ Allbery <rra@stanford.edu>
#
# under the same terms as Perl itself.
BEGIN {
chdir 't' if -d 't';
} else {
}
$| = 1;
print "1..5\n";
}
END {
}
$loaded = 1;
print "ok 1\n";
# Hard-code a few values to try to get reproducible results.
# Set default options to match those of pod2man and pod2text.
# Capture warnings for inspection.
my $warnings = '';
# Run a single test, given some POD to parse and the warning messages that are
# expected. Any formatted output is ignored; only warning messages are
# checked. Writes the POD to a temporary file since that's the easiest way to
# interact with Pod::Parser.
sub test_error {
return 1;
} else {
return 0;
}
}
# The actual tests.
my @tests = (
[ "=head1 a E<0x2028> b\n"
[ "=head1 a Y<0x2028> b\n"
[ "=head1 TEST\n\n=command args\n"
[ "=head1 TEST\n\n Foo bar\n\n=back\n"
);
my $n = 2;
$n++;
}