ANNOUNCE: Rose::HTML::Objects 0.6061 released

2 views
Skip to first unread message

John Siracusa

unread,
Nov 19, 2009, 10:58:09 AM11/19/09
to rose-htm...@googlegroups.com
I'm still baffled by the intermittent error in this test:

$error = $o->error;
is(length($error), 25, 'localized error length');

In some installations of perl, length() counts bytes here instead of
characters, returning 46 instead of 25. I say "installations" because
although many test failures are for perl 5.8.8, when I test in perl
5.8.8 this test passes! Michael Lackhoff was able to reproduce the
error, however, and with his help I've modified the test to force
stringification on $error (it's an object that overloads
stringification). The test is now:

$error = $o->error;
is(length("$error"), 25, 'localized error length');

which I hope will pass everywhere. (Michael says it passes for him.)

-John

0.6061 (11.19.2009) - John Siracusa <sira...@gmail.com>

* Altered tests to work around strange UTF-8 errors in some installations
of perl. (Thanks to Michael Lackhoff for help debugging.)
Reply all
Reply to author
Forward
0 new messages