Skip to content

Commit

Permalink
test named function as well
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasIsensee committed May 16, 2021
1 parent b857bd0 commit a582aef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/recon_funcs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a582aef

Please sign in to comment.