Skip to content

Commit

Permalink
test armagarchf and eatf
Browse files Browse the repository at this point in the history
  • Loading branch information
thierrymoudiki committed Jan 18, 2024
1 parent e83311c commit 36b746d
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 36b746d

Please sign in to comment.