tests/testthat/test_aopdata_dictionary.R

context("aopdata_dictionary")

# skip tests because they take too much time
testthat::skip_on_cran()



# Expected success -----------------------------------

test_that("aopdata_dictionary", {

  testthat::expect_invisible(aopdata_dictionary(lang='en') )
  testthat::expect_invisible(aopdata_dictionary(lang='pt') )
})


# Expected errors -----------------------------------
test_that("aopdata_dictionary", {

  testthat::expect_error(aopdata_dictionary(lang='999') )
  testthat::expect_error(aopdata_dictionary(lang=999) )

})

Try the aopdata package in your browser

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

aopdata documentation built on April 4, 2025, 2:01 a.m.