Thread: [Perlunit-commits] src/Test-Unit/t/tlib AssertTest.pm
Status: Beta
Brought to you by:
mca1001
From: Adam S. <ada...@us...> - 2001-12-04 17:27:35
|
Update of /cvsroot/perlunit/src/Test-Unit/t/tlib In directory usw-pr-cvs1:/tmp/cvs-serv2846 Modified Files: AssertTest.pm Log Message: - Added hairiness to failure/error testing, so it now doesn't just check that the exception was raised, but also checks that its file() and line() methods point correctly to the source of the failed assertion. - Refactored duplicated code from check_failures() and check_errors() into check_exceptions() |
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. |
From: Adam S. <ada...@us...> - 2001-12-19 12:52:17
|
Update of /cvsroot/perlunit/src/Test-Unit/t/tlib In directory usw-pr-cvs1:/tmp/cvs-serv6753 Modified Files: AssertTest.pm Log Message: 3 more tests for ok() |
From: Adam S. <ada...@us...> - 2002-01-08 19:21:51
|
Update of /cvsroot/perlunit/src/Test-Unit/t/tlib In directory usw-pr-cvs1:/tmp/cvs-serv3119/t/tlib Modified Files: AssertTest.pm Log Message: - Fix breakage where coderef assertions were not failing. Coderef assertions are now expected to throw Test::Unit::Failures ($self->fail() is a convenient way of doing this; see updated docs). - New tests for assert(). - New multi_assert() for using multiple argument sets with one assertion (plus tests). - New assert_raises() for asserting that a coderef raises a particular class of exception (plus tests). |
From: Adam S. <ada...@us...> - 2002-01-29 16:36:20
|
Update of /cvsroot/perlunit/src/Test-Unit/t/tlib In directory usw-pr-cvs1:/tmp/cvs-serv24007/t/tlib Modified Files: AssertTest.pm Log Message: - new assert_deep_equals for comparing deep structures, mostly ripped out of Test::More - some tests weren't getting run because of identical hash keys when I should have been using arrays (doh!) |
From: Adam S. <ada...@us...> - 2002-02-05 17:53:38
|
Update of /cvsroot/perlunit/src/Test-Unit/t/tlib In directory usw-pr-cvs1:/tmp/cvs-serv20407/t/tlib Modified Files: AssertTest.pm Log Message: assert_deep_equals takes references 'A' and 'B', not 'got' and 'expected' |
From: Adam S. <ada...@us...> - 2002-02-12 15:38:15
|
Update of /cvsroot/perlunit/src/Test-Unit/t/tlib In directory usw-pr-cvs1:/tmp/cvs-serv12810/t/tlib Modified Files: AssertTest.pm Log Message: make $self->assert([1]); work |
From: Adam S. <ada...@us...> - 2002-03-18 14:35:44
|
Update of /cvsroot/perlunit/src/Test-Unit/t/tlib In directory usw-pr-cvs1:/tmp/cvs-serv17454 Modified Files: AssertTest.pm Log Message: update boolean assertion tests for new failure message |
From: Adam S. <ada...@us...> - 2002-03-26 17:18:04
|
Update of /cvsroot/perlunit/src/Test-Unit/t/tlib In directory usw-pr-cvs1:/tmp/cvs-serv22074/t/tlib Modified Files: AssertTest.pm Log Message: avoid UNIVERSAL::isa, which is buggy with 5.6.0 (see perldelta) |
From: Adam S. <ada...@us...> - 2002-05-23 15:15:24
|
Update of /cvsroot/perlunit/src/Test-Unit/t/tlib In directory usw-pr-cvs1:/tmp/cvs-serv23870/t/tlib Modified Files: AssertTest.pm Log Message: assert_(str|num)(_not)?_equals now fail with undef parameters, to avoid tests passing by accident. The user should either use assert_null/assert_not_null, or check for undef before the assertion. |
From: Matthew A. <mc...@us...> - 2005-07-31 17:52:24
|
Update of /cvsroot/perlunit/src/Test-Unit/t/tlib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22688/src/Test-Unit/t/tlib Modified Files: AssertTest.pm Log Message: T:U:Assert::is_numeric: change the test to match only lone numbers. fix SF bug#1014540 *** NB. this causes assert_equals to switch from assert_num_equals to assert_str_equals in some cases t/tlib/AssertTest.pm: tests for new is_numeric |
From: Matthew A. <mc...@us...> - 2005-10-15 15:32:50
|
Update of /cvsroot/perlunit/src/Test-Unit/t/tlib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13963/t/tlib Modified Files: AssertTest.pm Log Message: modifed test from flacoste's SF patch #678422 |
From: Matthew A. <mc...@us...> - 2005-10-15 15:35:12
|
Update of /cvsroot/perlunit/src/Test-Unit/t/tlib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14227/t/tlib Modified Files: AssertTest.pm Log Message: modifed test from mca1001's SF bug #1012115 |
From: Matthew A. <mc...@us...> - 2005-10-15 20:31:45
|
Update of /cvsroot/perlunit/src/Test-Unit/t/tlib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11215/t/tlib Modified Files: AssertTest.pm Log Message: more tests on SCALAR refs, and improve the regexp |
From: Matthew A. <mc...@us...> - 2005-10-15 21:19:24
|
Update of /cvsroot/perlunit/src/Test-Unit/t/tlib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17851/t/tlib Modified Files: AssertTest.pm Log Message: extra check, for SF bug #610499 |
From: Matthew A. <mc...@us...> - 2005-10-22 16:39:08
|
Update of /cvsroot/perlunit/src/Test-Unit/t/tlib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20812/t/tlib Modified Files: AssertTest.pm Log Message: Add assert_isa & assert_can patch from MAREKR's RT bug #4613 |
From: Matthew A. <mc...@us...> - 2005-10-22 17:25:55
|
Update of /cvsroot/perlunit/src/Test-Unit/t/tlib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31815/t/tlib Modified Files: AssertTest.pm Log Message: assert_{isa,can}: tweak failure messages; also, do we want them to work on classnames as well as objects? tests currently FAIL |
From: Matthew A. <mc...@us...> - 2007-10-29 16:49:51
|
Update of /cvsroot/perlunit/src/Test-Unit/t/tlib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13208/t/tlib Modified Files: AssertTest.pm Log Message: quieten broken tests |
From: Matthew A. <mc...@us...> - 2007-10-29 17:39:28
|
Update of /cvsroot/perlunit/src/Test-Unit/t/tlib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv732/t/tlib Modified Files: AssertTest.pm Log Message: fix is_numeric the conservative way: if it's not clearly text or number, barf (return of SF bug #1014540) |