using Dates
using DataFrames
using Statistics
using Test
using TSx

# constants
DATA_SIZE = 400

# global variables
data_vector = randn(DATA_SIZE)
data_array = Array([data_vector data_vector])

index_range = 1:DATA_SIZE
index_integer = collect(index_range)
index_timetype = Date(2007, 1,1) + Day.(0:(DATA_SIZE - 1))

df_vector = DataFrame([data_vector], ["data"])
df_integer_index = DataFrame(Index = index_integer, data = data_vector)
df_timetype_index = DataFrame(Index = index_timetype, data = data_vector)


@testset "TS()" begin
    include("TS.jl")
end

@testset "getindex()" begin
    include("getindex.jl")
end

@testset "index()" begin
    include("index.jl")
end
