Skip to content

Commit a1ded19

Browse files
committed
test scenario when input matrix has rows with only zeros
1 parent e9e5da0 commit a1ded19

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/testthat.R

+6
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ logger = lgr::get_logger('rsparse')
88
logger$set_threshold('warn')
99
data("movielens100k")
1010
test_check("rsparse")
11+
12+
movielens100k = rbind(
13+
movielens100k,
14+
as(matrix(0, nrow = 2, ncol = ncol(movielens100k)), 'sparseMatrix'),
15+
movielens100k[1:2, ]
16+
)

0 commit comments

Comments
 (0)