tests/testthat/test-Fun_Height2Depth.R

test_that('Height2Depth works', {
  height <- c(0, 1, 2, 3, 4, 5, 6, 7)
  expect_equal(hgt_to_dpt(height), c(7, 6, 5, 4, 3, 2, 1, 0))
})

Try the dycdtools package in your browser

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

dycdtools documentation built on Nov. 22, 2022, 1:12 a.m.