tests/testthat/test-temp_fact.R

context("test-temp_fact")

data(net)
data(pc_profile)


test_that("temp_fact works", {
  expect_equal(round(temp_fact(net$ldv+net$hdv, pc_profile)[1,1]),
               round(Vehicles(689.1404)))
})

test_that("temp_fact works", {
  expect_equal(round(temp_fact(net$ldv+net$hdv, pc_profile, net = net)$V1[1]),
               round(Vehicles(689.1404)))
})

test_that("temp_fact stops", {
  expect_error(temp_fact(q = NULL, pro = 1),
               "No.?\\(?")
})

Try the vein package in your browser

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

vein documentation built on April 30, 2023, 1:10 a.m.