tests/testthat/test_c.R

# load libraries
#Sys.setenv(NOT_CRAN='skip')
library("testthat")
library("neotoma2")

context("Verifying that concatenation of c() works appropriately.")

test_that("c() concats properly.", {

  skip_on_cran()
  alex <- get_sites(24)
  site5 <- get_sites(5)
  alex2 <- get_datasets(7870)

  sites <- c(alex, alex2)
  testthat::expect_equal(length(sites), 1)

  sites <- c(sites, site5)
  testthat::expect_equal(length(sites), 2)
})

Try the neotoma2 package in your browser

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

neotoma2 documentation built on May 29, 2024, 6:21 a.m.