tests/testthat/test-xs_area.R

test_that("multiplication works", {
  expect_equal(object = as.numeric(xs_area(testxs, TAPE, InvertRod, Bankful, TRUE)),-23.4665)
})

test_that("Units in testxs carry through xs-area", {
  expect_equal(
    object = units::as_units(units(testxs$TAPE)),
    expected = units::as_units("ft"),
    ignore_attr = TRUE
  )
})
brownhr/excess documentation built on June 12, 2022, 5:50 a.m.