tests/testthat/test-systemCodeExists.R

library(BridgeDbR)
context("simple")

test_that("it knows about the ChEBI system code", {
    answer = systemCodeExists("Ce")
    expect_equal(answer, TRUE)
})

test_that("it reports false when the system code does not exist", {
    answer = systemCodeExists("Not")
    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.