tests/testthat/test_aux.R

# tests for auxilarry functions

context("wp_linked_pages()")

test_that("wp_linked_pages() is robust against no-data, sparse data", {
  expect_error(
    {
      wikipediatrend::wp_linked_pages("Sheerness_Lifeboat_Station", lang="en")
    }, 
    NA
  )
})

Try the wikipediatrend package in your browser

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

wikipediatrend documentation built on July 8, 2020, 5:44 p.m.