Thread: [Perlunit-commits] src/Test-Unit/lib/Test/Unit Assert.pm
Status: Beta
Brought to you by:
mca1001
From: Adam S. <ada...@us...> - 2001-12-04 17:28:37
|
Update of /cvsroot/perlunit/src/Test-Unit/lib/Test/Unit In directory usw-pr-cvs1:/tmp/cvs-serv3085 Modified Files: Assert.pm Log Message: We seem to have obtained an extra 2 stack frames somewhere along the line. This makes the new, more stringent exception checking tests in AssertTest.pm pass. |
From: Adam S. <ada...@us...> - 2001-12-11 18:08:21
|
Update of /cvsroot/perlunit/src/Test-Unit/lib/Test/Unit In directory usw-pr-cvs1:/tmp/cvs-serv22154/lib/Test/Unit Modified Files: Assert.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...> - 2002-01-08 19:21:51
|
Update of /cvsroot/perlunit/src/Test-Unit/lib/Test/Unit In directory usw-pr-cvs1:/tmp/cvs-serv3119/lib/Test/Unit Modified Files: Assert.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/lib/Test/Unit In directory usw-pr-cvs1:/tmp/cvs-serv24007/lib/Test/Unit Modified Files: Assert.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/lib/Test/Unit In directory usw-pr-cvs1:/tmp/cvs-serv20407/lib/Test/Unit Modified Files: Assert.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:16
|
Update of /cvsroot/perlunit/src/Test-Unit/lib/Test/Unit In directory usw-pr-cvs1:/tmp/cvs-serv12810/lib/Test/Unit Modified Files: Assert.pm Log Message: make $self->assert([1]); work |
From: Adam S. <ada...@us...> - 2002-02-20 18:12:01
|
Update of /cvsroot/perlunit/src/Test-Unit/lib/Test/Unit In directory usw-pr-cvs1:/tmp/cvs-serv29507 Modified Files: Assert.pm Log Message: reintroduce caveat about $self->assert($foo =~ /$bar/) |
From: Adam S. <ada...@us...> - 2002-03-26 17:18:03
|
Update of /cvsroot/perlunit/src/Test-Unit/lib/Test/Unit In directory usw-pr-cvs1:/tmp/cvs-serv22074/lib/Test/Unit Modified Files: Assert.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/lib/Test/Unit In directory usw-pr-cvs1:/tmp/cvs-serv23870/lib/Test/Unit Modified Files: Assert.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:26
|
Update of /cvsroot/perlunit/src/Test-Unit/lib/Test/Unit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22688/src/Test-Unit/lib/Test/Unit Modified Files: Assert.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 17:58:18
|
Update of /cvsroot/perlunit/src/Test-Unit/lib/Test/Unit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13586/lib/Test/Unit Modified Files: Assert.pm Log Message: fix for recursive structures from flacoste's SF patch #678422 |
From: Matthew A. <mc...@us...> - 2005-10-15 18:18:01
|
Update of /cvsroot/perlunit/src/Test-Unit/lib/Test/Unit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17949/lib/Test/Unit Modified Files: Assert.pm Log Message: flacoste's fix for comparisons of undef from Debian BTS #249678 |
From: Matthew A. <mc...@us...> - 2005-10-15 20:25:36
|
Update of /cvsroot/perlunit/src/Test-Unit/lib/Test/Unit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10286/lib/Test/Unit Modified Files: Assert.pm Log Message: fix comparison of SCALAR refs |
From: Matthew A. <mc...@us...> - 2005-10-22 16:39:08
|
Update of /cvsroot/perlunit/src/Test-Unit/lib/Test/Unit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20812/lib/Test/Unit Modified Files: Assert.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/lib/Test/Unit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31815/lib/Test/Unit Modified Files: Assert.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 17:39:25
|
Update of /cvsroot/perlunit/src/Test-Unit/lib/Test/Unit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv732/lib/Test/Unit Modified Files: Assert.pm Log Message: fix is_numeric the conservative way: if it's not clearly text or number, barf (return of SF bug #1014540) |
From: Matthew A. <mc...@us...> - 2007-11-05 18:33:33
|
Update of /cvsroot/perlunit/src/Test-Unit/lib/Test/Unit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30599/lib/Test/Unit Modified Files: Assert.pm Log Message: revise my expectations of assert_raises in POD and test; make the error more helpful |