test-genString.R 299 B

12345678910
  1. context("genString")
  2. opt <- options("warn")[[1]]
  3. options("warn" = 0)
  4. on.exit(options("warn" = opt))
  5. test_that("genString() throws a warning for multiple products", {
  6. expect_warning(genString(c("MYD15A2", "MOD15A2"), collection = "005"))
  7. expect_warning(genString("MOD15A2*", collection = 5))
  8. })