tests/testthat/test_schemas.R

context("Schema retrieval")
test_that("Schemas can be retrieved", {
  expect_true({get_planet_schema();TRUE})
  expect_true({get_species_schema();TRUE})
  expect_true({get_film_schema();TRUE})
  expect_true({get_vehicle_schema();TRUE})
  expect_true({get_starship_schema();TRUE})
  expect_true({get_person_schema();TRUE})
})

test_that("Schemas can be retrieved and parsed", {
  expect_true({get_planet_schema(TRUE);TRUE})
  expect_true({get_species_schema(TRUE);TRUE})
  expect_true({get_film_schema(TRUE);TRUE})
  expect_true({get_vehicle_schema(TRUE);TRUE})
  expect_true({get_starship_schema(TRUE);TRUE})
  expect_true({get_person_schema(TRUE);TRUE})
})

Try the rwars package in your browser

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

rwars documentation built on May 2, 2019, 9:19 a.m.