Skip to content

Commit

Permalink
Merge branch 'devel' of git.bioconductor.org:packages/FRASER into bio…
Browse files Browse the repository at this point in the history
…c_devel
  • Loading branch information
c-mertes committed Apr 27, 2024
2 parents 1dfe7e1 + e68992a commit 9e51cd0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/testthat/test_getter_setter.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,12 @@ test_that("generic functions", {
c("FraserDataSet", "ANY", "ANY", drop="missing"))
expect_equal(slot(methDef, "defined")[["x"]], "FraserDataSet")
})

test_that("generic functions", {
# test that the correct functions are selected and called
methDef <- selectMethod("[", c("FraserDataSet", "ANY", "ANY", drop="ANY"))
expect_equal(slot(methDef, "defined")[["x"]], "FraserDataSet")
methDef <- selectMethod("[",
c("FraserDataSet", "ANY", "ANY", drop="missing"))
expect_equal(slot(methDef, "defined")[["x"]], "FraserDataSet")
})

0 comments on commit 9e51cd0

Please sign in to comment.