Skip to content

Commit 93b86bb

Browse files
committed
Image2D tests replace tapprox with is_pdl - #34 #393
1 parent 5bb5088 commit 93b86bb

File tree

2 files changed

+74
-165
lines changed

2 files changed

+74
-165
lines changed

Basic/TestPDL.pm

+2-1
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,9 @@ Named after is() from L<Test::More>.
174174

175175
sub is_pdl {
176176
require Test::Builder;
177-
my ( $got, $expected, $arg ) = @_;
178177
my $tb = Test::Builder->new;
178+
$tb->croak('error in arguments: > 3 given') if @_ > 3;
179+
my ( $got, $expected, $arg ) = @_;
179180
$tb->croak('error in arguments: third argument is an ndarray')
180181
if eval { $arg->isa('PDL') };
181182
my $opt = { %DEFAULTS };

0 commit comments

Comments
 (0)