tests/testthat/test_search.R

context("Search functions")

test_that("English-language search works",{
  expect_true({find_item("Wonder Girls", "en");TRUE})
})

test_that("Non-English-language search works",{
  expect_true({find_item("Wonder Girls", "es");TRUE})
})

test_that("Property search works",{
  expect_true({find_property("Music", "en");TRUE})
})

Try the WikidataR package in your browser

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

WikidataR documentation built on Nov. 16, 2021, 5:07 p.m.