tests/testthat/test-rd-keyword.R

context("Rd: keyword")

test_that("keywords split into pieces", {
  out <- roc_proc_text(rd_roclet(), "
    #' @keywords a b
    #' @title a
    #' @name a
    NULL")[[1]]

  expect_match(get_tag(out, "keyword")$values, fixed("a"), all = FALSE)
  expect_match(get_tag(out, "keyword")$values, fixed("b"), all = FALSE)
})
klmr/roxydoxy documentation built on May 20, 2019, 4:09 p.m.