tests/testthat/test_air.R

# vim:textwidth=80:expandtab:shiftwidth=4:softtabstop=4
library(oce)
test_that("air density at 0C and 100kPa", {
    # test value from <https://en.wikipedia.org/wiki/Density_of_air>
    expect_equal(1.2754, airRho(0, 1e5), tolerance=0.001)
})
dankelley/oce documentation built on May 3, 2024, 3:57 p.m.