[Perlunit-commits] src/Test-Unit/t/tlib AssertTest.pm
Status: Beta
Brought to you by:
mca1001
|
From: Adam S. <ada...@us...> - 2001-12-11 18:08:22
|
Update of /cvsroot/perlunit/src/Test-Unit/t/tlib
In directory usw-pr-cvs1:/tmp/cvs-serv22154/t/tlib
Modified Files:
AssertTest.pm
Log Message:
- Add new assert_matches() and assert_does_not_match() assertions,
as requested by Matthias Ferber, and new tests for them of course.
- Start testing for the correct messages in T::U::Failure objects
(see check_exception()). In particular this tests that the optional
MESSAGE args are processed correctly when reporting failures.
- Improved behaviour of assert_equals() and assert_not_equals() with
undefined parameters.
- Added more stringent tests for assert_equals() and assert_not_equals().
Some of these are possibly debatable. I think the assert_equals()
matrix should be retired in favour of the check_failures() style tests
used to check assert_not_equals(), since the latter also check the
failure message and originating file/line (added a #FIXME for this).
- Fixed reversed got/expected message with $self->ok(sub { 2 + 2 }, 4);
Spotted this as a bonus of the new check_exception(), yay.
|