Subject: | Failing test t/30_tree.t |
Date: | Wed, 26 Jul 2006 19:37:53 -0700 |
To: | bug-HTML-TableExtract [...] rt.cpan.org |
From: | "Steven Kuo" <attn.steven.kuo [...] gmail.com> |
To better see the problem I added
use Test::LongString;
to t/30_tree.t
and replaced:
cmp_ok($estr, 'eq', $hstr, 'mass html comp');
with
is_string($estr, $hstr, 'mass html comp');
The error message reads:
not ok 65 - mass html comp
# got: ..."le border="1"><tr><td colspan="4" rowspan="1">(0,0"...
# length: 912
# expected: ..."le border=1><tr><td colspan=4 rowspan=1>(0,0) [1,4"...
# length: 842
# strings begin to differ at char 67
Note the difference in double-quotes?
I suspect the HTML::TableExtract (2.10) module works fine --
it's likely the test had false expectations.
I have installed:
M/MS/MSISK/HTML-Element-Extended-1.17.tar.gz
P/PE/PETDANCE/HTML-Tree-3.20.tar.gz
G/GA/GAAS/HTML-Parser-3.55.tar.gz
perl -v and uname -a are:
This is perl, v5.8.7 built for i686-linux
Linux pun.nsc.com 2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:59:02 EST 2004
i686 i686 i386 GNU/Linux
I ignored the test failure and installed
the module.
--
Regards,
Steven