tests/testthat/test-physics.R

context("physics")

test_that("c to k", {
  expect_equal(temp_c_to_k(0), 273.15)
})

test_that("saturation vapor pressure", {
  expect_equal(svp_sea_level(temp_k = temp_c_to_k(37)), 47, tolerance = 0.1)
})

Try the physiology package in your browser

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

physiology documentation built on May 2, 2019, 8:58 a.m.