tests/testthat/test-in.R

test_that("Error when x is of wrong type", {
  expect_error({in_csquares(1, "100*")})
})

test_that("Error when y is invalid", {
  expect_error({in_csquares("1000", "200*")})
})

test_that("Error when x is of wrong type", {
  expect_false({
    orca[1:10,] |> as_csquares(csquares = "csquares") |>
      in_csquares("1000:*") |> all()
  })
})

Try the csquares package in your browser

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

csquares documentation built on Sept. 11, 2024, 7:21 p.m.