tests/testthat/test_meta.R

context("localize()")

test_that(
  "Localize document"
  , {
    lang <- papaja:::localize("english")

    expect_is(lang, "list")
    expect_equal(length(lang), 9)
    expect_equal(names(lang), c("author_note", "abstract", "keywords", "word_count", "table", "figure", "note", "correspondence", "email"))
    expect_equivalent(sapply(lang, class), rep("character", 9))
  }
)
crsh/papaja documentation built on Feb. 21, 2024, 6:11 p.m.