Skip to content

Commit

Permalink
Merge pull request #36 from JohannesNaegele/dev
Browse files Browse the repository at this point in the history
Fixed runtest for 1.6
  • Loading branch information
JohannesNaegele authored May 6, 2024
2 parents deb4edc + 474ed17 commit aa22247
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ using Test
z = y * (y[-1] + 0.5 * z) * θ + x[-1]
y = z[-2] * x * b
end
@test 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]),
:(endos[2] = lags[1, end - -1] * exos[1, end + 0] * b)
]
replace_worked = @test_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]),
:(endos[2] = lags[1, end - -1] * exos[1, end + 0] * b)
]
@test replace_worked

# test non-equation
let eqs = @equations begin
Expand Down

0 comments on commit aa22247

Please sign in to comment.