tests/testthat/test-tran.R

## Test `tran()` function

## load packages
library("testthat")
library("analogue")

context("Testing tran()")

## Imbrie and Kipp example
## load the example data
data(ImbrieKipp)

test_that("tran() handles bad inputs", {
    expect_error(tran(ImbrieKipp, method = "foo"))
})
gavinsimpson/analogue documentation built on June 17, 2021, 2:37 a.m.