Subject: | Add more position diagnostics than just "char X" |
For a typical string match, where one half of the match was slurped out
of a file, you get something like this...
not ok 8 - ->dialog_super ok
# Failed test '->dialog_super ok'
# at t\02_simple.t line 23.
# got:
..."'),\x{0a}\x{09});\x{0a}\x{0a}\x{09}$self->{m_button1} =
Wx::Button->new(\x{0a}\x{09}\x{09}"...
# length: 1427
# expected: ..."'),\x{0a}\x{09});\x{0a}\x{0a}\x{09}my $m_staticline1
= Wx::StaticLine->new("...
# length: 1236
# strings begin to differ at char 419
While this is quite nice, the location of the problem would be much
quicker to locate if you could also get the line and column values for
the differ point as well.
This is particularly tricky because the newline format in the editor
won't always be quite the same. Extending the diagnostics to list char +
line + column would greatly speed up the process of locating the differ
point.