Skip to content

Commit f22d432

Browse files
committed
Update tests
1 parent 52c896e commit f22d432

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/testthat/test-dimreduc.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ test_that("LSI works", {
3434

3535
expect_equal(
3636
object = as.vector(embeddings[1, ]),
37-
expected = c(0.51255352, -0.08674426, 1.33604004, 1.18108240),
37+
expected = c(0.51255352, 0.08674426, -1.33604004, 1.18108240),
3838
tolerance = 1 / 1000
3939
)
4040
expect_equal(
4141
object = as.vector(loadings[1, ]),
42-
expected = c(-0.4024075, -0.4292469, -0.6463644, 0.1740785),
42+
expected = c(-0.4024075, 0.4292469, 0.6463644, 0.1740785),
4343
tolerance = 1 / 1000
4444
)
4545
})

tests/testthat/test-preprocessing.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ test_that("NucleosomeSignal works", {
9999
verbose = FALSE
100100
)
101101
Fragments(object = atac_small) <- fragments
102-
ns <- NucleosomeSignal(object = atac_small, verbose = FALSE)
102+
ns <- expect_warning(NucleosomeSignal(object = atac_small, verbose = FALSE))
103103
expect_equal(
104104
object = as.numeric(x = head(x = ns$nucleosome_signal)),
105105
expected = c(NaN, NaN, 0.0, 2.5, NaN, NaN)

0 commit comments

Comments
 (0)