Skip to content

Commit

Permalink
version-dependence
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenpi committed Jul 6, 2024
1 parent 63a5cff commit 42e22a6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/parseblock.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ end
@test exprs[1].expr == Expr(:toplevel, :x, :y, :z)
@test exprs[1].code == "x; y; z\n"
@test exprs[2].expr == :q
@test exprs[2].code == "q\n\n\n"
# TODO: There is a parsing difference here.. probably due to the JuliaSyntax change.
if VERSION < v"1.10"
@test exprs[2].code == "q\n"
else
@test exprs[2].code == "q\n\n\n"
end
end
end

0 comments on commit 42e22a6

Please sign in to comment.