tests/testthat/test-line.R

test_that("line", {
  x <- mesh_10km(c("644142", "533946", "523667", "523503", "503033"))
  y <- c(utils::tail(x, -1), x[1])

  expect_true(is.list(mesh_line(x, y)))
  expect_true(is.list(mesh_line(list(x, y))))
})

Try the japanmesh package in your browser

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

japanmesh documentation built on Dec. 11, 2021, 9:36 a.m.