diff --git a/Project.toml b/Project.toml index b807120..130b676 100644 --- a/Project.toml +++ b/Project.toml @@ -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" diff --git a/test/logsimtests.jl b/test/logsimtests.jl index 478ff26..0e55020 100644 --- a/test/logsimtests.jl +++ b/test/logsimtests.jl @@ -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 diff --git a/test/simdatatests.jl b/test/simdatatests.jl index 33e0136..b2cfbdd 100644 --- a/test/simdatatests.jl +++ b/test/simdatatests.jl @@ -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} diff --git a/test/simtests.jl b/test/simtests.jl index dfbc313..d7eb9ca 100644 --- a/test/simtests.jl +++ b/test/simtests.jl @@ -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)