Skip to content

Commit

Permalink
Image2D tests replace tapprox with is_pdl - #34 #393
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Oct 30, 2024
1 parent 5bb5088 commit 93b86bb
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 165 deletions.
3 changes: 2 additions & 1 deletion Basic/TestPDL.pm
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,9 @@ Named after is() from L<Test::More>.

sub is_pdl {
require Test::Builder;
my ( $got, $expected, $arg ) = @_;
my $tb = Test::Builder->new;
$tb->croak('error in arguments: > 3 given') if @_ > 3;
my ( $got, $expected, $arg ) = @_;
$tb->croak('error in arguments: third argument is an ndarray')
if eval { $arg->isa('PDL') };
my $opt = { %DEFAULTS };
Expand Down
Loading

0 comments on commit 93b86bb

Please sign in to comment.