tests/testthat/test-annotate.R

context("test-annotate")

test_that("list_matches finds matches", {
  expect_equal(list_matches("test apple test", c("apple")), "apple")
  expect_equal(list_matches("test apple test", c("apple()")), character())
  expect_equal(list_matches("test apple() test", c("apple()")), "apple")
  expect_equal(list_matches("test apple test", c("apple", "test")), c("apple", "test"))
})
basf/reactflush documentation built on Feb. 15, 2021, 12:12 a.m.