Skip to content

Commit

Permalink
test absolute values
Browse files Browse the repository at this point in the history
  • Loading branch information
ms609 committed Sep 6, 2024
1 parent 2b9e734 commit 47353a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-spectral_clustering.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ test_that("Spectral clustering fails gracefully", {
test_that("Spectral clustering works", {
allEig <- SpectralEigens(d, nEig = Inf)
expect_equal(dim(allEig), c(40, 40))
expect_equal(SpectralEigens(d, nEig = 2), allEig[, 40:39],
expect_equal(abs(SpectralEigens(d, nEig = 2)), abs(allEig[, 40:39]),
tolerance = sqrt(.Machine[["double.eps"]]))
})

0 comments on commit 47353a7

Please sign in to comment.