tests/testthat/test-e_cof_tf.R

library(testthat)
library(CNAIM)

context("Environmental Consequences of Failure for transformers")

test_that("e_cof_tf", {
  expect_equal(e_cof_tf(asset_type_tf = "6.6/11kV Transformer (GM)",
                        rated_capacity = 750,
                        prox_water = 100,
                        bunded = "Yes"), 1904.5)
})

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.