tests/bt.mean.test.R

################################################################################
##
## $Id: bt.mean.test.R 1300 2008-08-27 21:01:11Z zhao $
##
## Tests for function "bt.mean"
##
################################################################################

library(backtest)

load("bt.mean.test.RData")

## save(x, truth, file = "bt.mean.test.RData", compress = TRUE)

stopifnot(
          isTRUE(all.equal(backtest:::.bt.mean(x), truth))
        )

Try the backtest package in your browser

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

backtest documentation built on May 2, 2019, 10:58 a.m.