tests/testthat/test-fullNameExists.R

library(BridgeDbR)
context("simple")

test_that("it knows about ChEBI", {
    answer <- fullNameExists("ChEBI")
    expect_equal(answer, TRUE)
})

test_that("it reports false when the resource does not exist", {
    answer <- fullNameExists("Sourcy McSourceface")
    expect_equal(answer, FALSE)
})
egonw/BridgeDbR documentation built on Nov. 8, 2024, 4:21 a.m.