Skip to content

Commit

Permalink
Add tests to JuliaLang#23519
Browse files Browse the repository at this point in the history
  • Loading branch information
cdsousa committed Sep 29, 2017
1 parent 988e4d6 commit 8e28bf4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/parse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1366,3 +1366,11 @@ let xs = [:(1+2), :(3+4), :(5+6)]
ex2 = eval(ex)
@test ex2.args[2:end] == [3,7,11]
end

# issue #23519
@test parse("@foo[1]") == parse("@foo([1])")
@test parse("@foo[1 2; 3 4]") == parse("@foo([1 2; 3 4])")
@test parse("@foo[1] + [2]") == parse("@foo([1]) + [2]")
@test parse("@foo [1] + [2]") == parse("@foo([1] + [2])")
@test parse("@Mdl.foo[1] + [2]") == parse("@Mdl.foo([1]) + [2]")
@test parse("@Mdl.foo [1] + [2]") == parse("@Mdl.foo([1] + [2])")

0 comments on commit 8e28bf4

Please sign in to comment.