Skip to content

Commit

Permalink
Fix tests for TimeSeriesEcon v0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
bbejanov committed May 10, 2024
1 parent 81b279e commit b68e2b8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Printf = "1.7"
Random = "1.7"
SparseArrays = "1.7"
Suppressor = "0.2"
TimeSeriesEcon = "0.6"
TimeSeriesEcon = "0.7"
TimerOutputs = "0.5"
julia = "1.7"

Expand Down
2 changes: 1 addition & 1 deletion test/logsimtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@

# update exogenous data accordingly
ed[firstdate(p)] = k[firstdate(p)]
ed[lastdate(p), 1:2] .= rand(2)
ed[lastdate(p), m.variables] .= rand(2)

@test simulate(m, p, ed, fctype=fcslope) k
@test simulate(m, p, ed, fctype=fcnatural) k
Expand Down
2 changes: 1 addition & 1 deletion test/simdatatests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
@test sd[:, 1] == sd[:, 2]
sd.a = zeros(size(dta, 1))
@test sum(abs, sd.a.values) == 0
@test_throws BoundsError sd.a = ones(length(sd.a) + 5)
@test_throws DimensionMismatch sd.a = ones(length(sd.a) + 5)
# access to rows by MIT
sd[:] = dta[:]
@test sd[2000Q1] isa Vector{Float64}
Expand Down
2 changes: 1 addition & 1 deletion test/simtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ end
let m = getE3()
p = Plan(m, 3:177)
ed = zerodata(m, p)
ed[3U, m.shocks] .= 0.2 * rand(1, 3)
ed[3U, m.shocks] .= 0.2 * rand(3)
ed[3U:end, m.variables] .= rand(178, 3)
empty!(m.sstate.constraints)
clear_sstate!(m)
Expand Down

0 comments on commit b68e2b8

Please sign in to comment.