tests/testthat/test-location_factor_sub.R

library(testthat)
library(CNAIM)

context("Location factor for a non-landlocked submarine cable")

test_that("cof", {

  res <- location_factor_sub(topography = "Default",
                    situation = "Default",
                    wind_wave = "Default",
                    intensity = "Default",
                    landlocked = "no")

  expected_val <- 1.3

  expect_equal(res, expected_val)
})

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.