tests/testthat/test_get_ids.R

library(entrezquery)
context("getids")

test_that("character vector is returned", {
  expect_equal(class(get_ids('expression profiling by high throughput sequencing[DataSet Type]', db = 'gds', retmax = 4)), "character")
  expect_equal(length(get_ids('expression profiling by high throughput sequencing[DataSet Type]', db = 'gds', retmax = 4)), 4)
})
tpall/entrezquery documentation built on May 9, 2019, 8:32 a.m.