tests/testthat/test-n_cof_excl_ehv_132kv_tf.R

library(testthat)
library(CNAIM)

context("Network cost of Failure")

test_that("n_cof_excl_ehv_132kv_tf", {
  expect_equal(n_cof_excl_ehv_132kv_tf(asset_type_ncf = "6.6/11kV Transformer (GM)",
                                       no_customers = 750,
                                       kva_per_customer = 51) %>% round(1), 407156.2)
})

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.