tests/testthat/test_stat_calculation.R

context("Test for the function 'stat_calculation'")

load("test_stat_calculation.RData")

test_that("stat_calculation function", {
  result.1 <- backtestGraphics:::stat_calculation(x.list)
  
  expect_equal(result.1, truth.1, label = "Failed the test for calculating summary statistics")
})

Try the backtestGraphics package in your browser

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

backtestGraphics documentation built on May 29, 2017, 3:11 p.m.