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)
})

Try the BridgeDbR package in your browser

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

BridgeDbR documentation built on Nov. 8, 2020, 5:09 p.m.