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))
})
SongyanYu/dycdtools documentation built on Oct. 12, 2024, 4:41 a.m.