Debugging and Visibility
I have recently been developing Spreadsheet::HTML and apart from a handful of mistakes, two particular CPANTS smoke testsĀ (see this and that) always have one specific test fail. And only that one test. Here is the relevant output:
1 2 3 4 |
# Failed test 'encoding all HTML entities' # at t/03-encode-data.t line 42. # got: '<table><tr><th><</th><th>=</th><th>&</th><th>></th><th>"</th><th>'</th></tr><tr><td><</td><td>=</td><td>&</td><td>></td><td>"</td><td>'</td></tr></table>' # expected: '<table><tr><th><</th><th>=</th><th>&</th><th>></th><th>"</th><th>'</th></tr><tr><td><</td><td>=</td><td>&</td><td>></td><td>"</td><td>'</td></tr></table>' |
Needless to say, i was hard pressed to spot the problem. I usually just ignored these two …