This will make life a lot easier while testing itself. No more having to screw around with TieOut. Had to slurp in IO::Scalar for 5.6 support. I started with just TieOut but getting the self-tie right was too much of a PITA so I figured just go with something that works.
In anticipation of new tests.
…_ok, as well as reporting the caller's file and line. This let's the user know where cmp_ok() was called from while reminding them that it is being run in a different context. Also change caller() to always return the top of the stack if it goes too high. This will solve a lot of issues where $Level isn't set right.
So wrap all require's in a _try() block to mask that. Add a die_on_fail option to _try() so our requires will fail when they fail.
* cmp_ok() now displays the error if the comparison throws one. For example, broken overloaded objects. Bug Fixes * cmp_ok() no longer stringifies or numifies its arguments before comparing. This makes cmp_ok() properly test overloaded ops. [rt.cpan.org 24186] [code.google.com 16] * diag() properly escapes blank lines. Don't bother checking if objects are dualvars. They can't be and it avoids tripping on weirdly overloaded objects.
…f test files. [rt.cpan.org 39329]
…ease. It now has its own branch.
changes. Add "make perltidy"
that aren't TAP-like, such as POSIX.
why we can't dup the handles when -c'ing.
Change last_test_number to next_test_number because that's easier to think about. Usually you're setting what you want the next test to be. Change history() to results() so as to avoid confusion with the $history object, though I might change the name of this class to Results.
…eople doing that, and it's a sensible mistake. [test-more.googlecode.com 13]
Covering the last few bits of untested code. Now at about 99% effective coverage on Test::More and Test::Builder Bug Fixes - Fixed the file and line number reported by like when it gets a bad regex. Features Changed - Now preserves the tests' exit code if it exits abnormally, rather than setting it to 255. - Changed the "Looks like your test died" message to "Looks like your test exited with $exit_code"
Add tests for explain()