Skip to content

Commit

Permalink
Fix failing unit-test test.predict (on matrix contruction)
Browse files Browse the repository at this point in the history
  • Loading branch information
renozao committed Nov 25, 2022
1 parent b6e5ebb commit 07f613f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-NMFclass.R
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ test_that("test.predict", {
expect_equal(as.factor(c(1, 2, rep(3, m - 2))), res, info = mess("Return known clusters"))
.msg <- "Random matrix"
set.seed(.TestSeed)
V <- matrix(sapply(sample(n), function(i) {
V <- matrix(sapply(sample(n, size = m), function(i) {
x <- rep(0, n)
x[i] <- 1
x
Expand Down

0 comments on commit 07f613f

Please sign in to comment.