tests/testthat/test-SoilandVeg2CN.R

context("SoilandVeg2CN")

test_that("SoilandVeg2CN works", {

  dfLookup <- MakeLoopkupTable("Fair woods + Poor pasture")
  cnLocal <- SoilandVeg2CN(soilCODE = 15,
                           vegetationCODE = 6,
                           lookupTable = dfLookup,
                           artificialDrainage = "none")

  expect_equal(cnLocal, 74)

})
cvitolo/curvenumber documentation built on April 19, 2022, 3:33 a.m.