tests/testthat/test-turnLiftStepHist.R

test_that("turnLiftStepHist() has the correct structure", {
  turnLiftStep <- turnLiftStepHist(
    turn = c(0, 0, 0), lif = c(0, 0, 0), step = c(0, 0, 0),
    printDims = FALSE, rm.zeros = TRUE, maxBin = Inf
  )
  expect_equal(turnLiftStep$values$turn, 0)
  expect_equal(turnLiftStep$values$lift, 0)
  expect_equal(turnLiftStep$values$step, 0)
  expect_equal(turnLiftStep$values$prob, 1)
  expect_equal(turnLiftStep$tRes, 0)
  expect_equal(turnLiftStep$lRes, 0)
  expect_equal(turnLiftStep$dRes, 0)
})

Try the eRTG3D package in your browser

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

eRTG3D documentation built on March 18, 2022, 6:11 p.m.