From a582aefa5870de133206ea72b8db8a8f7f67ac9b Mon Sep 17 00:00:00 2001 From: Jonas Isensee Date: Sun, 16 May 2021 18:43:23 +0200 Subject: [PATCH] test named function as well --- test/recon_funcs.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/recon_funcs.jl b/test/recon_funcs.jl index 40108e6f..0b521dd5 100644 --- a/test/recon_funcs.jl +++ b/test/recon_funcs.jl @@ -41,6 +41,11 @@ end @testset "Anonymous Functions" begin fn = joinpath(mktempdir(), "test.jld2") + # Regular function first + jldsave(fn; cos) + loaded_cos = load(fn, "cos") + @test cos === loaded_cos + # "Pure" function f1 = (x) -> x^2