Hooray for Test::LongString

petdance on 2003-06-30T01:40:32

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!)


Cool

rafael on 2003-06-30T06:47:45

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.

Boy, can I use this!

pemungkah on 2003-06-30T17:57:55

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.