tests/testthat/test-rand_walk.R

set.seed(42)
x = mean(rand_walk(0,30, 500), rand_walk(0,30, 500),rand_walk(0,30, 500),rand_walk(0,30, 500), rand_walk(0,30, 500),
         rand_walk(0,30, 500))

test_that("mean of stochastic", {
  expect_true(x<4.2 & x>-4.2)
})
AlissonRP/TestesJr documentation built on April 13, 2022, 6:36 a.m.