tests/testthat/test-db_get.R

test_that("Returns an error if incorrect table is supplied", {
  expect_error(db_get("pineapple"))
})

i <- db_get("Items", db = '2122')

test_that("Item table has four columns", {
  expect_equal(ncol(i), 4)
})

test_that("Some item will be field test", {
  # field test items should have a missing item_difficulty value
  expect_equal(any(is.na(i$item_difficulty)), TRUE)
})
UO-BRT/orextdb documentation built on Jan. 29, 2023, 8:53 a.m.