1
# Test datatype sizes in bytes are correct
4
use PDL::Core ':Internal'; # For howbig()
9
print "not " unless $result ;
15
ok(1, howbig(byte(42)->get_datatype)==1);
16
ok(2, howbig(short(42)->get_datatype)==2);
17
ok(3, howbig(ushort(42)->get_datatype)==2);
18
ok(4, howbig(long(42)->get_datatype)==4);
19
ok(5, howbig(float(42)->get_datatype)==4);
20
ok(6, howbig(double(42)->get_datatype)==8);