Skip to content

Commit

Permalink
add tests for NumMatrix2D that it does matrix properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Whiteknight committed Nov 14, 2009
1 parent 09dc92e commit 2f135a0
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion t/10-nummatrix.t
Expand Up @@ -18,9 +18,10 @@ sub MAIN () {
pla_library_loaded:
};

plan(82);
plan(84);

create_nummatrix2d();
op_does_matrix();
vtable_set_number_keyed();
vtable_get_number_keyed();
vtable_get_attr_str();
Expand Down Expand Up @@ -65,6 +66,17 @@ sub create_nummatrix2d() {
}
}

sub op_does_matrix() {
Q:PIR {
$P0 = new ['NumMatrix2D']
$I0 = does $P0, 'matrix'
ok($I0, "NumMatrix2D does matrix")
$I0 = does $P0, 'gobbledegak'
$I0 = not $I0
ok($I0, "...and only does matrix")
}
}
sub vtable_set_number_keyed() {
Q:PIR {
push_eh can_not_set
Expand Down

0 comments on commit 2f135a0

Please sign in to comment.