tests/testthat/test-bin.R

context("bin")

test_that("bin (numeric)", {

  expect_equal(
    bin(0:8, by = 3),
    c(0, 0, 0, 3, 3, 3, 6, 6, 6))

})
BAAQMD/qtytools documentation built on June 30, 2022, 6:07 p.m.