tests/testthat/test-triangle-mesh.R

context("test-triangle-mesh")

test_that("triangle mesh works", {
  ## test will change when triangle mesh is properly featured
  triangmesh(etopo) %>%
    expect_s3_class("mesh3d") %>%
    expect_s3_class("triangmesh") %>%
    expect_named(c("it", "vb", "primitivetype", "material", "raster_metadata", "crs"))
})

Try the quadmesh package in your browser

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

quadmesh documentation built on Aug. 31, 2022, 9:10 a.m.