Skip to content

Commit

Permalink
Update test for RGLab/cytolib@5afbec8
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobpwagner committed Sep 4, 2020
1 parent 93956e0 commit 4a6883a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/testthat/cytoset-suite.R
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ test_that("save/load", {
#idx by col
tmp1 <- tempfile()
save_cytoset(cs[, 1:2], tmp1)
cs1 <- load_cytoset(tmp1)
# For later overwrite test, this needs to be writable
cs1 <- load_cytoset(tmp1, backend_readonly = FALSE)
expect_equal(colnames(cs1), colnames(cs[,1:2]))#col-idexing result is preserved
expect_equal(range(cs1[[1]], "data"), range(cs[[1]][,1:2], "data"))#the data is correct

Expand Down

0 comments on commit 4a6883a

Please sign in to comment.