Initial Commit
This commit is contained in:
34
database/perl/lib/Test/Deep/String.pm
Normal file
34
database/perl/lib/Test/Deep/String.pm
Normal file
@@ -0,0 +1,34 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
package Test::Deep::String;
|
||||
|
||||
use Test::Deep::Cmp;
|
||||
|
||||
sub init
|
||||
{
|
||||
my $self = shift;
|
||||
|
||||
$self->{val} = shift;
|
||||
}
|
||||
|
||||
sub descend
|
||||
{
|
||||
my $self = shift;
|
||||
my $got = shift()."";
|
||||
|
||||
$self->data->{got} = $got;
|
||||
|
||||
return $got eq $self->{val};
|
||||
}
|
||||
|
||||
sub diag_message
|
||||
{
|
||||
my $self = shift;
|
||||
|
||||
my $where = shift;
|
||||
|
||||
return "Comparing $where as a string";
|
||||
}
|
||||
|
||||
1;
|
||||
Reference in New Issue
Block a user