The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Changes for version 2.4.0 - 2024-03-04

    • 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".


Convenience assertions for common situations