|
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 | |
|---|
| 1 | use strict; |
|---|
| 2 | use warnings; |
|---|
| 3 | |
|---|
| 4 | package Test::Deep::Isa; |
|---|
| 5 | |
|---|
| 6 | use Test::Deep::Cmp; |
|---|
| 7 | |
|---|
| 8 | sub init |
|---|
| 9 | { |
|---|
| 10 | my $self = shift; |
|---|
| 11 | |
|---|
| 12 | my $val = shift; |
|---|
| 13 | $self->{val} = $val; |
|---|
| 14 | } |
|---|
| 15 | |
|---|
| 16 | sub descend |
|---|
| 17 | { |
|---|
| 18 | my $self = shift; |
|---|
| 19 | my $got = shift; |
|---|
| 20 | |
|---|
| 21 | return UNIVERSAL::isa($got, $self->{val}); |
|---|
| 22 | } |
|---|
| 23 | |
|---|
| 24 | sub diag_message |
|---|
| 25 | { |
|---|
| 26 | my $self = shift; |
|---|
| 27 | |
|---|
| 28 | my $where = shift; |
|---|
| 29 | |
|---|
| 30 | return "Checking class of $where with isa()"; |
|---|
| 31 | } |
|---|
| 32 | |
|---|
| 33 | 1; |
|---|