tests/testthat/test-PointSim.R

library(spacejamr)

# Data used for testing
data("RI")

test_that("we can simulate point processes", {

    ri_points <- PointSim(points = 10, window = RI)

    # Ensure correct class
    expect_identical(class(ri_points), "PointSim")
})

test_that("we can generate a Halton Sequence", {

    ri_points <- PointSim(points = 10, window = RI, type = halton)

    # Ensure correct class
    expect_identical(class(ri_points), "PointSim")
})

Try the spacejamr package in your browser

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

spacejamr documentation built on April 2, 2022, 1:07 a.m.