tests/testthat/test-assign_country.R

test_that("country = 'all' returns the expected output", {
  expect_equal(assign_country(country = "all"), all_countries)
})

test_that("Arguments other than 'all' are returned as is", {
  country <- c("ALB", "CHN")
  expect_equal(assign_country(country), country)
})
worldbank/povcalnetR documentation built on Jan. 31, 2023, 4:30 a.m.