diff --git a/src/SubPrecisionContactDetection.jl b/src/SubPrecisionContactDetection.jl index 2343011..657c0bf 100644 --- a/src/SubPrecisionContactDetection.jl +++ b/src/SubPrecisionContactDetection.jl @@ -1341,7 +1341,7 @@ end Save metadata (dict) into fname (json) """ -function save_meta(meta, fname) +function save_meta(fname, meta) open(fname, "w") do io JSON.print(io, meta) end diff --git a/test/runtests.jl b/test/runtests.jl index 79c8ac0..d4ed577 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -136,7 +136,7 @@ using Distributions @testset "meta" begin args = get_defaults() - save_meta(args, "test.json") + save_meta("test.json", args) fargs = read_meta("test.json") @test args == fargs end