Skip Menu |

This queue is for tickets about the HTML-TableExtract CPAN distribution.

Report information
The Basics
Id: 20709
Status: resolved
Priority: 0/
Queue: HTML-TableExtract

People
Owner: MSISK [...] cpan.org
Requestors: attn.steven.kuo [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
The reason is that the test has a *negative* dependency on HTML::TreeBuilder. I see the same error when HTML::TreeBuilder is installed but the error goes away when I hide HTML::TreeBuilder.
Fixed in 2.11; it was merely in the tests. This quotes-vs-no-quotes business from TreeBuilder when rendering attributes has been popping up for quite some time now. At any rate, the tests should at least work now.