The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 2.4.0 - 2024-03-04

  • ENHANCEMENTS
    • New function assert_arrayref_all() calls an assertion function for every element in the array.
      • my $aref_of_counts = get_counts(); assert_arrayref_all( $aref, \&assert_positive_integer, 'Counts are positive' );
    • assert_context_scalar() now provides a default message of "function_name must be called in scalar context".
    • assert_context_nonvoid() now provide a default message of "function_name must not be called in void context".

Modules

Convenience assertions for common situations