tests/testthat/test-location_factor.R

library(testthat)
library(CNAIM)

context("location factor")

test_that("location_factor", {
  # TODO: verify correctness
  expect_equal(location_factor(placement = "Default",
                               altitude_m = "Default",
                               distance_from_coast_km = "Default",
                               corrosion_category_index = "Default",
                               asset_type = "6.6/11kV Transformer (GM)"), 0.925)
})

Try the CNAIM package in your browser

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

CNAIM documentation built on Aug. 31, 2022, 9:13 a.m.