Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Revision history for Test-Deep

{{$NEXT}}
- add documentation for reftype() (Karen Etheridge)

1.205 2025-04-01 11:01:50-04:00 America/New_York
- add "use v5.12" to Test::Deep, just for clarity
Expand Down
7 changes: 7 additions & 0 deletions lib/Test/Deep.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1281,6 +1281,13 @@ to patch over the fact that C<isa> is exported by default.
This test accepts only objects that are instances of C<$class> or a subclass.
Unlike the C<Isa> test, this test will never accept class names.

=head3 reftype

cmp_deeply( $got, reftype('CODE') );

This test only accepts values that are of the reftype passed to the subroutine,
for example C<HASH>, C<ARRAY>, C<SCALAR>, C<GLOB> or C<CODE>.

=head3 array_each

cmp_deeply( \@got, array_each($thing) );
Expand Down
Loading