Hi, here's an easy question for you Test:: experts :

I write lots of test those days with is() comparing binary
strings (mainly produced by combination of pack() and other
algorithms.) The problem is that the output message of is()
when those tests fail is not very helpful.

I'd like to have a custom version of is(), say binary_is(), that
reports 'strings 1 and 2 differ at byte 635, got 0x92, expected 0x42'
or 'strings 1 differ in length, got 3874, expected 3875'.

Is there already some module that does this ? If not, what's
the best way to implement this myself ? (my tests using Test::More.)

Reply via email to