Skip to content

Commit ca97fd5

Browse files
update tests
1 parent 55478f2 commit ca97fd5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

test/models/sarima.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# Values are very close to 0.0 so we test with absolute tolerance
3030
# It attains 1e-3 when we make 10M simulations, which is too much
3131
# computation for a rather simple test.
32-
test_scenarios_adequacy_with_forecast(forec, scenarios; atol=1e-1)
32+
test_scenarios_adequacy_with_forecast(forec, scenarios; atol=2e-1)
3333

3434
missing_obs = [6, 16, 26, 36, 46, 56, 66, 72, 73, 74, 75, 76, 86, 96]
3535
missing_dinternet = copy(dinternet)

test/models/unobserved_components.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,9 @@
4040
@test minimum(alpha[:, 1]) <= 296
4141
@test maximum(alpha[:, 2]) >= 7.5
4242
@test minimum(alpha[:, 2]) <= -7.5
43+
44+
# Testing that it does not break
45+
rj_temp = CSV.File(StateSpaceModels.RJ_TEMPERATURE) |> DataFrame
46+
model = UnobservedComponents(rj_temp.Values; trend = "smooth trend", cycle = "stochastic")
47+
fit!(model)
4348
end

0 commit comments

Comments
 (0)