tests/testthat/test_get_etiology.R

test_that("get_etiology", {
  ee <- get_etiology("ID", c("ID1", "foo", "ID3"))
  expect_equal(
    ee,
    c(
      ID1 = "Replication slippage; defective DNA mismatch repair",
      foo = "",
      ID3 = "Tobacco smoking"
    )
  )
})

Try the cosmicsig package in your browser

Any scripts or data that you put into this service are public.

cosmicsig documentation built on Aug. 30, 2023, 9:10 a.m.