Skip to content

Commit

Permalink
add inferred test
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloLucibello committed Nov 4, 2024
1 parent 84df145 commit d4e5aea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/cache.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@testset "inferred" begin
r = [1,2]
x = (a = r, b = 3, c =(4, (d=5, e=r)))
y = @inferred(fmap(float, x))
@test y.a === y.c[2].e
end
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ using Measurements: ±
include("base.jl")
include("keypath.jl")
include("flexiblefunctors.jl")
include("cache.jl")
end

0 comments on commit d4e5aea

Please sign in to comment.