Skip to content

Commit

Permalink
TODOify tests related to view_array* memory management in Matrix and …
Browse files Browse the repository at this point in the history
…Vector
  • Loading branch information
leto committed Apr 24, 2009
1 parent 1ea75dc commit a7772b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions t/Matrix.t
Original file line number Diff line number Diff line change
Expand Up @@ -535,13 +535,15 @@ sub SET_COL_CHAINED : Tests {
}

sub GSL_MATRIX_VIEW_ARRAY : Tests {
local $TODO = "memory management for view_array* functions is being worked on";
my $array = [8,4,3,7];
my $matrix_view = gsl_matrix_view_array ($array, 2,2);
ok_similar([map { gsl_matrix_get($matrix_view->{matrix}, 0, $_) } 0..1], [8, 4]);
ok_similar([map { gsl_matrix_get($matrix_view->{matrix}, 1, $_) } 0..1], [3, 7]);
}

sub GSL_MATRIX_VIEW_ARRAY_WITH_TDA : Tests {
local $TODO = "memory management for view_array* functions is being worked on";
my $array = [8,4,3,7,5];
my $matrix_view = gsl_matrix_view_array_with_tda ($array, 2,2, 3);
ok_similar([map { gsl_matrix_get($matrix_view->{matrix}, 0, $_) } 0..1], [8, 4]);
Expand Down
2 changes: 1 addition & 1 deletion t/Vector.t
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ sub GSL_VECTOR_MEMCPY : Tests {
}

sub GSL_VECTOR_VIEW_ARRAY : Tests {
local $TODO = 'this test is incorrect';
local $TODO = "memory management for view_array* functions is being worked on";
my @array = [1,2,3,4,5,6];
my $vec_view = gsl_vector_view_array(@array, 2);
map { is(gsl_vector_get($vec_view->{vector}, $_), $_+1 ) } (0..1); ;
Expand Down

0 comments on commit a7772b3

Please sign in to comment.