tests/testthat/test-registerDataSource.R

library(BridgeDbR)
context("simple")

test_that("allows registring of an existing resources", {
    dataSource = registerDataSource(code="Cks", name="KNApSAcK")
    expect_false(is.null(dataSource))
    expect_equal(dataSource$getSystemCode(), "Cks")
})

test_that("allows registring of a new resources", {
    dataSource = registerDataSource(code="Sou", name="Sourcy McSourceface")
    expect_false(is.null(dataSource))  
    expect_equal(dataSource$getSystemCode(), "Sou")
})

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.