tests/testthat/test_DIC.R

# tests of the DIC functions #

test_that("X_DIC returns a data frame", {
  expect_s3_class(X_DIC(temp = 10, pH = 7, S = 0), "data.frame")
  expect_length(X_DIC(temp = 10, pH = 7, S = 0), 3)
})

test_that("X_absorption returns a data frame", {
  expect_s3_class(X_absorption(temp = 10, pH = 7, S = 0), "data.frame")
  expect_length(X_absorption(temp = 10, pH = 7, S = 0), 2)
})

Try the isogeochem package in your browser

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

isogeochem documentation built on March 31, 2023, 8:30 p.m.