tests/testthat/test-version.R

context("version")

test_that("version works", {
  aa <- version()
  aaj <- jsonlite::fromJSON(aa)

  expect_is(aa, "character")
  expect_is(aaj, "list")

  expect_named(aaj$compiler, c("c++", "family", "version"))
  expect_named(aaj$version, c("major", "minor", "patch", "string"))
})

Try the geoops package in your browser

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

geoops documentation built on July 1, 2020, 10:39 p.m.