Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

petdance (2468)

petdance
  andy@petdance.com
http://www.perlbuzz.com/
AOL IM: petdance (Add Buddy, Send Message)
Yahoo! ID: petdance (Add User, Send Message)
Jabber: petdance@gmail.com

I'm Andy Lester, and I like to test stuff. I also write for the Perl Journal, and do tech edits on books. Sometimes I write code, too.

Journal of petdance (2468)

Sunday June 29, 2003
08:40 PM

Hooray for Test::LongString

[ #13139 ]
I was having problems figuring out why my tests were failing in WWW::Mechanize, so I pulled out Test::LongString, and look what it showed:

t/tick............NOK 5#     Failed test (t/tick.t at line 39)
#          got: "POST http://x/\x{0a}Content-Length: 21\x{0a}Content-"...
#       length: 113
#     expected: "POST http://x/\x{0a}Content-Length: 21 \x{0a}Content"...
#       length: 114
#     strings begin to differ at char 23
# Looks like you failed 1 tests of 5.

Oooh, an extra, invisible space! Thanks, Test::LongString! (and Rafaël!)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I wrote it when I was dealing with large strings with lots of non-printable characters -- a custom binary serialization scheme. -- I've a to-do list for this module. Notably, improve diagnostics : print in the message the part where the strings begin to differ.
  • Turns out that there are subtle internal differences between 5.6.0 (where GraphViz::Data::Structure works) and 5.8.0 (where it doesn't, at all).

    This will make is much easier to see where the emitted dot code is different. Thanks from me too.