Skip to content

Commit

Permalink
add tests for VTABLE_multiply(Float)
Browse files Browse the repository at this point in the history
  • Loading branch information
Whiteknight committed Nov 8, 2009
1 parent eddd6b9 commit e3edb2b
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions t/10-nummatrix.t
Expand Up @@ -18,7 +18,7 @@ sub MAIN () {
pla_library_loaded:
};

plan(81);
plan(82);

create_nummatrix2d();
vtable_set_number_keyed();
Expand Down Expand Up @@ -395,7 +395,26 @@ sub vtable_add_float() {
}

sub vtable_multiply_nummatrix2d() {}
sub vtable_multiply_float() {}
sub vtable_multiply_float() {
Q:PIR {
$P0 = new ['NumMatrix2D']
$P0[0;0] = 1.0
$P0[1;0] = 2.0
$P0[0;1] = 3.0
$P0[1;1] = 4.0
$P1 = new ['NumMatrix2D']
$P1[0;0] = 2.5
$P1[1;0] = 5.0
$P1[0;1] = 7.5
$P1[1;1] = 10.0
$P2 = box 2.5
$P3 = $P0 * $P2
$I0 = $P3 == $P1
ok($I0, "can multiply a Float with NumMatrix2D")
}
}
sub vtable_clone() {
Q:PIR {
Expand Down

0 comments on commit e3edb2b

Please sign in to comment.