5
kill INT,$$ if $ENV{UNDER_DEBUGGER}; # Useful for debugging.
11
if($result) { print "ok $no\n";return }
12
my ($p,$f,$l) = caller;
13
print "FAILED TEST $no AT $p $f $l\n";
15
print "not " unless $result ;
22
# PDL::Core::set_debugging(1);
24
# Test basic use of foomethod.
26
$a = zvals zeroes 2,2,50;
28
$b = $a->oneslice(2,10,2,5);
30
ok(1,$b->at(0,0,0) == 10);
31
ok(2,$b->at(0,0,1) == 12);
32
ok(3,$b->at(0,0,4) == 18);
36
$t->call_trans_foomethod(11,3,6);
40
ok(4,$b->at(0,0,0) == 11);
41
ok(5,$b->at(0,0,1) == 14);
42
ok(6,$b->at(0,0,2) == 17);
43
ok(7,$b->at(0,0,3) == 20);
44
ok(8,$b->at(0,0,4) == 23);
45
ok(9,$b->at(0,0,5) == 26);
47
# Now, start making affine stuffs...
51
print $a->slice("(0),(0)"),"\n";
52
$a0 = $a->slice("(0),(0)")->copy;
60
print $a->slice("(0),(0)"),"\n";
61
$a1 = $a->slice("(0),(0)")->copy;
65
$t->call_trans_foomethod(11,6,6);
67
print $b->slice("(0),(0)"),"\n";
68
print $a->slice("(0),(0)"),"\n";