1Revision history for Perl extension Carp::Assert::More. 2 32.0.1 Fri Aug 13 11:57:15 CDT 2021 4 [FIXES] 5 assert_all_keys_in() mistakenly required a non-empty list of 6 keys to check. 7 8 [ENHANCEMENTS] 9 Sped up assert_isa_in(), assert_is(). 10 11 122.0.0 Thu Aug 12 23:00::00 CDT 2021 13 [DIFFERENCES] 14 Now requires Perl 5.10 or higher. No longer requires Carp::Assert. 15 16 The numeric functions are more stringent now. If it expects 17 a number, then you need to pass a number. For example, 18 assert_nonnegative($x) would pass if $x was a non-numeric 19 string. Now it must be numeric. 20 21 assert_empty() and assert_nonempty() no longer gives a message 22 of "Not an array or hash reference". If you don't pass an array 23 or hash reference, the assertion will just fail with the message 24 passe3d in. 25 26 assert_aoh() and assert_datetime() no longer provide a default 27 message. 28 29 assert_in() is more strict. Each element of the target array 30 is checked to not be a reference. 31 32 assert_exists() and assert_lacks() are more strict. The list 33 of keys to check cannot be empty. 34 35 [ENHANCEMENTS] 36 Most of the functions are about twice as fast because of reduced 37 number of function calls internally. 38 39 Added assert_context_nonvoid() and assert_context_scalar() 40 to assert on how the executing function has been called. 41 42 assert_in() now lets you use undef as both the needle and one 43 of the values in the haystack. 44 45 461.26 Sat Dec 26 00:26:23 CST 2020 47 [ENHANCEMENTS] 48 Add assert_arrayref_nonempty(). 49 50 Add assert_hashref_nonempty(). 51 521.24 Tue Oct 6 22:37:06 CDT 2020 53 [ENHANCEMENTS] 54 The requirement for Perl 5.10 has been reverted to 5.6.1. 55 561.22 Tue Oct 6 22:03:55 CDT 2020 57 [ENHANCEMENTS] 58 Add assert_keys_are() for asserting an exact list of keys. 59 601.20 Fri Aug 9 10:10:06 CDT 2019 61 [ENHANCEMENTS] 62 Add assert_datetime() for asserting DateTime objects. 63 641.18 Fri Jul 19 17:12:32 CDT 2019 65 [ENHANCEMENTS] 66 Added assert_aoh() for asserting an array of hashrefs. 67 681.16 Fri Aug 4 14:18:51 CDT 2017 69 [ENHANCEMENTS] 70 Added the following functions: 71 * assert_numeric( $n ) 72 * assert_all_keys_in( \%hash, \@keylist ) 73 * assert_empty( [\%hash|\@list] ) 74 * assert_coderef( $ref ) 75 * assert_isa_in( $ref, \@class_list ) 76 Thanks to Eric A. Zarko for some of them. The rest were migrated 77 from a private code project. 78 79 Renamed assert_listref() to assert_arrayref(), but keep 80 assert_listref() as backward compatibility. assert_listref() 81 may go away in the future. 82 83 [DOCUMENTATION] 84 Fixed a goof in the assert_integer() docs. Thanks, Randy Lauen. 85 861.14 Wed Oct 31 11:37:04 CDT 2012 87 [ENHANCEMENTS] 88 Added assert_undefined() for Ben Hengst. 89 90 Added assert_unlike(). 91 92 [FIXES] 93 assert_nonblank() wasn't using the correct message. Thanks to 94 Leland Johnson. 95 96 assert_nonempty() wouldn't work on blessed arrays and refs. 97 Now it will. 98 991.12 Oct 14 2005 100 [ENHANCEMENTS] 101 * Added assert_nonnegative() and assert_nonnegative_integer(). 102 * Added assert_lacks(). Thanks to Bob Diss. 103 1041.10 Wed Feb 16 12:52:16 CST 2005 105 [FIXES] 106 * Fixed assert_positive_integer() to not pass "14.". 107 1081.08 Wed Nov 24 11:44:34 CST 2004 109 [ENHANCEMENTS] 110 * Added assert_is() and assert_isnt() 111 * Organized the functions into logical groupings. 112 113 [INTERNALS] 114 * Now requires Test::Exception. 115 * Added t/pod.t and t/pod-coverage.t 116 117 1181.06 Sat Oct 30 23:50:45 CDT 2004 119 * No functionality changes. Just added a Copyright notice to 120 so we can put it in Debian. 121 1221.04 Mon Oct 18 10:21:37 CDT 2004 123 [ENHANCEMENTS] 124 * assert_isa() is now aware of subclasses. 125 126 [FIXES] 127 * $names weren't getting passed to sub-assertions. Now they are. 128 129 [DOCUMENTATION] 130 * Documentation fix. 131 132 This is the "all thanks to Allard Hoeve" release. 133 1341.02 Tue Oct 5 17:31:56 CDT 2004 135 [ENHANCEMENTS] 136 * Added assert_hashref() and assert_listref(). Thanks to Dan 137 Friedman. 138 1391.00 Wed Sep 22 10:14:28 CDT 2004 140 * First real official version. I'm not sure what's different 141 between this and 0.04. 142 143 * Added a bunch of new assert_* functions. Thanks David 144 Storrs and Pete Krawczyk. 145 1460.04 August 21, 2002 147 - Added assert_integer 148 - Added assert_nonzero 149 - Added assert_nonzero_integer 150 - Added assert_exists 151 1520.03 August 15, 2002 153 - Added assert_fail 154 1550.02 August 8, 2002 156 - Added assert_nonblank and assert_nonref 157 1580.01 August 8, 2002 159 - Original version, stolen from Carp::Assert 160