@@ -24,7 +24,6 @@ context("matrix-C++") {
2424 expect_true (x[1 ].size () == 2 );
2525 expect_true (x[1 ].stride () == 5 );
2626 }
27-
2827 test_that (" matrix dim attributes are correct for read only matrices" ) {
2928 auto getExportedValue = cpp11::package (" base" )[" getExportedValue" ];
3029
@@ -42,7 +41,6 @@ context("matrix-C++") {
4241 expect_true (x[1 ].size () == 61 );
4342 expect_true (x[1 ].stride () == 87 );
4443 }
45-
4644 test_that (" matrix<by_column> attributes are correct" ) {
4745 cpp11::doubles_matrix<cpp11::by_column> x (getExportedValue (" datasets" , " volcano" ));
4846
@@ -158,38 +156,4 @@ context("matrix-C++") {
158156 cpp11::writable::doubles_matrix<cpp11::by_row> x (5 , 2 );
159157 expect_error (cpp11::writable::integers_matrix<cpp11::by_column>(x));
160158 }
161-
162- test_that (" complex matrix can be created, filled, and copied" ) {
163- cpp11::writable::complexes_matrix<cpp11::by_row> x (5 , 2 );
164-
165- for (int i = 0 ; i < 5 ; ++i) {
166- for (int j = 0 ; j < 2 ; ++j) {
167- x (i, j) = std::complex <double >(i, j);
168- }
169- }
170-
171- cpp11::writable::complexes_matrix<cpp11::by_column> y (5 , 2 );
172-
173- for (int i = 0 ; i < 5 ; ++i) {
174- for (int j = 0 ; j < 2 ; ++j) {
175- y (i, j) = std::complex <double >(i, j);
176- }
177- }
178-
179- cpp11::complexes_matrix<> xc = x;
180- expect_true (x.nrow () == xc.nrow ());
181- expect_true (x.ncol () == xc.ncol ());
182-
183- cpp11::complexes_matrix<> yc = y;
184- expect_true (y.nrow () == yc.nrow ());
185- expect_true (y.ncol () == yc.ncol ());
186-
187- // Pacha: I need to figure out how to compare complexes with testthat
188- // for (int i = 0; i < 5; ++i) {
189- // for (int j = 0; j < 2; ++j) {
190- // expect_true(x(i, j) == xc(i, j));
191- // expect_true(y(i, j) == yc(i, j));
192- // }
193- // }
194- }
195159}
0 commit comments