Skip to content

Commit 4e9107f

Browse files
test: ensure backwards compatibility w/ MOObject
1 parent aed130c commit 4e9107f

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎tests/testthat/helper-cli.R‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,15 @@ expect_outputs_created <- function(results_dir) {
6262
)
6363

6464
moo <- readr::read_rds(moo_path)
65+
moo_class_names <- class(moo)
6566
expect_true(
66-
inherits(moo, "MOSuite::multiOmicDataSet"),
67-
info = "Output should be an S7 multiOmicDataSet object"
67+
any(
68+
grepl("multiOmicDataSet", moo_class_names, fixed = TRUE)
69+
),
70+
info = paste(
71+
"Output should be an S7 multiOmicDataSet object; actual classes:",
72+
paste(moo_class_names, collapse = ", ")
73+
)
6874
)
6975
expect_true(
7076
"diff" %in% names(moo@analyses),

0 commit comments

Comments
 (0)