1 context("Check that dateIndexToInteger behaves as expected")
3 getDataTest = function(n, shift)
11 level = i %% 3mean(s[[index]])
13 # 10 series with NAs for index 2
14 if (index == 2 && i >= 60 && i<= 90)
15 serie[sample(seq_len(L),1)] = NA
16 series[[i]] = list("level"=i%%3, "serie"=s, "time"=)
18 data = new("Data", data=series)
21 test_that("integer index matches date in data, predict_at == 0",
24 dateIndexToInteger = function(index, data)
27 test_that("integer index matches date in data, predict_at > 0",
33 ####TODO: CSV as raw data in inst/extdata http://r-pkgs.had.co.nz/data.html