root/branches/release-40/t/lib/Test/Deep/Isa.pm @ 2583

Revision 2583, 361 bytes (checked in by mpaschal, 18 months ago)

Add Test::Deep to t/lib, since we already use it in driver-tests.pl
BugzID: 79953

Line 
1use strict;
2use warnings;
3
4package Test::Deep::Isa;
5
6use Test::Deep::Cmp;
7
8sub init
9{
10        my $self = shift;
11
12        my $val = shift;
13        $self->{val} = $val;
14}
15
16sub descend
17{
18        my $self = shift;
19        my $got = shift;
20
21        return UNIVERSAL::isa($got, $self->{val});
22}
23
24sub diag_message
25{
26        my $self = shift;
27
28        my $where = shift;
29
30        return "Checking class of $where with isa()";
31}
32
331;
Note: See TracBrowser for help on using the browser.