Skip to content

Commit

Permalink
test scenario when input matrix has rows with only zeros
Browse files Browse the repository at this point in the history
  • Loading branch information
dselivanov committed May 25, 2021
1 parent e9e5da0 commit a1ded19
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testthat.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ logger = lgr::get_logger('rsparse')
logger$set_threshold('warn')
data("movielens100k")
test_check("rsparse")

movielens100k = rbind(
movielens100k,
as(matrix(0, nrow = 2, ncol = ncol(movielens100k)), 'sparseMatrix'),
movielens100k[1:2, ]
)

0 comments on commit a1ded19

Please sign in to comment.