tests/testthat/test-03-airpressure_from_elev.R

context("Utility functions:Air pressure from elevation")
test_that("airpressure_from_elev works as expected", {
  #101.3kPa at 0m elevation
  expect_equal(airpressure_from_elev(0),101.3)
  #89.8kPa at 1000m
  expect_lt(airpressure_from_elev(1000),90)
  #26.4kPa at 10000m
  expect_lt(airpressure_from_elev(10000),30)
})

Try the TrenchR package in your browser

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

TrenchR documentation built on Sept. 14, 2023, 1:07 a.m.