tests/testthat/test-s2-earth.R

test_that("s2_earth_radius_meters works", {
  expect_type(s2_earth_radius_meters(), "double")
  expect_length(s2_earth_radius_meters(), 1)
})

Try the s2 package in your browser

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

s2 documentation built on Sept. 11, 2024, 9:24 p.m.