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 2, 2017
1 parent 486239f commit 9f01be6
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 @@ -1319,3 +1319,11 @@ let
@test f() == 0
@test f(2) == 2
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 9f01be6

Please sign in to comment.