tests/testthat/test-classint_to_vector.R

# context("test-classint_to_vector")

x <- classInt::classIntervals(var = stats::runif(n = 100), style = "fisher", n = 5)

################################################################################

test_that("classint_to_vector returns n breaks", {

  present_classes <- classint_to_vector(x = x, digits = 3)

  expect_length(present_classes, n = 5)

})
mhesselbarth/SHAR documentation built on March 19, 2024, 12:24 p.m.