Skip to content

Commit

Permalink
Update ExpressionExplorer.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Pangoraw authored Oct 22, 2023
1 parent 921f205 commit d5a42d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/ExpressionExplorer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,10 @@ Some of these @test_broken lines are commented out to prevent printing to the te

# try catch else was introduced in 1.8
@static if VERSION >= v"1.8.0"
@test testee(:(try 1 catch else x = 1; x finally a; end), [:a], [], [], [])
@test testee(:(try 1 catch else x = j; x finally a; end), [:a, :j], [], [], [])
@test testee(:(try x = 2 catch else x finally a; end), [:a, :x], [], [], [])
@test testee(:(try x = 2 catch else x end), [:x], [], [], [])
@test testee(Meta.parse("try 1 catch else x = 1; x finally a; end"), [:a], [], [], [])
@test testee(Meta.parse("try 1 catch else x = j; x finally a; end"), [:a, :j], [], [], [])
@test testee(Meta.parse("try x = 2 catch else x finally a; end"), [:a, :x], [], [], [])
@test testee(Meta.parse("try x = 2 catch else x end"), [:x], [], [], [])
end
end
@testset "Comprehensions" begin
Expand Down

0 comments on commit d5a42d2

Please sign in to comment.