1 # Exercise the tokenpos buffer allocation routines by feeding it
4 use Test::More tests => 2;
9 my $p = HTML::Parser->new(api_version => 3);
11 $p->handler("start" =>
14 #diag int(@$tp), " - ", join(", ", @$tp);
15 is(@$tp, 2 + 26 * 6 * 4);
18 $p->handler("declaration" =>
21 #diag int(@$t), " - @$t";
22 is(@$t, 26 * 6 * 2 + 1);
31 $p->parse("<!DOCTYPE ");
33 $p->parse("$_ -- $_ -- ");