tests/testthat/test_makeNetwork.R

context("makeNetwork function")

test_that("there is a warning on zero distances", {
  coordinates = matrix(c(1, 2, 1, 2), byrow = TRUE, ncol = 2L)
  expect_warning(makeNetwork(coordinates), regexp = "zero")
})
jakobbossek/netgen documentation built on Feb. 11, 2024, 1:02 a.m.