tests/testthat/test_getWindowLength.R

library(otsad)
context("Get Window Length")

test_that("GetWindowLength gives the correct result", {
  expect_equal(GetWindowLength(data.length = 180, num.real.anomaly = 3), 6)
})

Try the otsad package in your browser

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

otsad documentation built on Sept. 6, 2019, 5:02 p.m.