tests/testthat/test-air_dens_cf.R

context("tests for air_dens_cf")

test_that("temperature only", {
  expect_equal(air_dens_cf(20, 760), 1)
})
test_that("pressure only", {
  expect_equal(signif(air_dens_cf(30, 760), 7), 1.034112)
})
test_that("temperature and pressure change", {
  expect_equal(signif(air_dens_cf(20, 780), 6), 0.974359)
})

Try the radsafer package in your browser

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

radsafer documentation built on July 26, 2023, 6:03 p.m.