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. 2, 2024, 7:30 a.m.