From 36b746da17e5fa2cd65ac50b4018dc8336faff33 Mon Sep 17 00:00:00 2001 From: Thierry Moudiki Date: Thu, 18 Jan 2024 08:34:24 +0100 Subject: [PATCH] test armagarchf and eatf --- test/runtests.jl | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index e47bdd1..2284de9 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -6,13 +6,13 @@ using Test y = [1,2,3,4,5,6,7,8,9,10] z = rand(8, 2) - # @testset "----- Testing armagarchf -----" begin - # y = rand(25) - # val = Ahead.armagarchf(y, h=6) - # println(val) - # @test val[:x] == y - # @test val[:method] == "ARMA(1, 1) - GARCH(1, 1)" - # end + @testset "----- Testing armagarchf -----" begin + y = rand(25) + val = Ahead.armagarchf(y, h=6) + println(val) + @test val[:x] == y + @test val[:method] == "ARMA(1, 1) - GARCH(1, 1)" + end @testset "----- Testing basicf -----" begin val = Ahead.basicf(z, h=4) @@ -28,12 +28,12 @@ using Test @test val[:method] == "DynRM 1" end - #@testset "----- Testing eatf -----" begin - # val = Ahead.eatf(y, h=6) - # println(val) - # @test val[:x] == y - # @test val[:method] == "EAT" - #end + @testset "----- Testing eatf -----" begin + val = Ahead.eatf(y, h=6) + println(val) + @test val[:x] == y + @test val[:method] == "EAT" + end @testset "----- Testing loessf -----" begin val = Ahead.loessf(y, h=6)