Skip to content

Commit

Permalink
Merge pull request #37 from JohannesNaegele/dev
Browse files Browse the repository at this point in the history
Use @test_logs
  • Loading branch information
JohannesNaegele authored May 6, 2024
2 parents ae8e9b4 + c77d594 commit 0aeb76e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ using Test
z = y * (y[-1] + 0.5 * z) * θ + x[-1]
y = z[-2] * x * b
end
replace_worked = @test_warn "Symbols [:b] are not in variables or parameters" Consistent.replace_vars(
replace_worked = @test_logs (:warn, "Symbols [:b] are not in variables or parameters") Consistent.replace_vars(
test_eqs.args[[2, 4]], [:z, :y], Symbol[:x], []
) == [
:(endos[1] = endos[2] * (lags[2, end - 0] + 0.5 * endos[1]) * params[1] + exos[1, end + -1]),
Expand All @@ -45,7 +45,7 @@ using Test
let eqs = @equations begin
Y = C
end
@test_warn "Symbols [:C] are not in variables or parameters" model(
@test_logs (:warn, "Symbols [:C] are not in variables or parameters") model(
endos = @variables(Y),
exos = @variables(),
params = @variables(),
Expand Down

0 comments on commit 0aeb76e

Please sign in to comment.