diff --git a/test/matrixvariates.jl b/test/matrixvariates.jl index 4953cff670..9c04c399fc 100644 --- a/test/matrixvariates.jl +++ b/test/matrixvariates.jl @@ -262,7 +262,7 @@ function unpack_matvar_json_dict(dist::Type{<:MatrixDistribution}, dict) end function test_against_stan(dist::Type{<:MatrixDistribution}) - filename = joinpath(dirname(@__FILE__), "ref", "matrixvariates", "jsonfiles", "$(dist)_stan_output.json") + filename = joinpath(@__DIR__, "ref", "matrixvariates", "jsonfiles", "$(dist)_stan_output.json") stan_output = JSON.parsefile(filename) K = length(stan_output) for k in 1:K diff --git a/test/truncate.jl b/test/truncate.jl index 3603798759..363af62e5e 100644 --- a/test/truncate.jl +++ b/test/truncate.jl @@ -130,7 +130,7 @@ for c in ["discrete", title = string(uppercase(c[1]), c[2:end]) println(" [$title]") println(" ------------") - jsonfile = joinpath(dirname(@__FILE__), "ref", "$(c)_test.ref.json") + jsonfile = joinpath(@__DIR__, "ref", "$(c)_test.ref.json") verify_and_test_drive(jsonfile, ARGS, 10^6,3,5) println() end diff --git a/test/univariates.jl b/test/univariates.jl index 87ee32b4b2..8913b3866f 100644 --- a/test/univariates.jl +++ b/test/univariates.jl @@ -162,7 +162,7 @@ for c in ["discrete", title = string(uppercase(c[1]), c[2:end]) println(" [$title]") println(" ------------") - jsonfile = joinpath(dirname(@__FILE__), "ref", "$(c)_test.ref.json") + jsonfile = joinpath(@__DIR__, "ref", "$(c)_test.ref.json") verify_and_test_drive(jsonfile, ARGS, 10^6) println() end