tests/testthat/test-getMatchingSources.R

library(BridgeDbR)
context("simple")

test_that("it recognizes identifiers from HMDB (old)", {
    answerList = getMatchingSources("HMDB00626")
    expect_true(is.vector(answerList))
    expect_true("HMDB" %in% answerList)
})

test_that("it recognizes identifiers from HMDB (new, 2017-08)", {
    answerList = getMatchingSources("HMDB0000626")
    expect_true(is.vector(answerList))
    expect_true("HMDB" %in% answerList)
})

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.