|
Revision 2583, 360 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::String; |
|---|
| 5 | |
|---|
| 6 | use Test::Deep::Cmp; |
|---|
| 7 | |
|---|
| 8 | sub init |
|---|
| 9 | { |
|---|
| 10 | my $self = shift; |
|---|
| 11 | |
|---|
| 12 | $self->{val} = shift; |
|---|
| 13 | } |
|---|
| 14 | |
|---|
| 15 | sub descend |
|---|
| 16 | { |
|---|
| 17 | my $self = shift; |
|---|
| 18 | my $got = shift().""; |
|---|
| 19 | |
|---|
| 20 | $self->data->{got} = $got; |
|---|
| 21 | |
|---|
| 22 | return $got eq $self->{val}; |
|---|
| 23 | } |
|---|
| 24 | |
|---|
| 25 | sub diag_message |
|---|
| 26 | { |
|---|
| 27 | my $self = shift; |
|---|
| 28 | |
|---|
| 29 | my $where = shift; |
|---|
| 30 | |
|---|
| 31 | return "Comparing $where as a string"; |
|---|
| 32 | } |
|---|
| 33 | |
|---|
| 34 | 1; |
|---|