Skip to content

Commit

Permalink
Write up test for JuliaLang#15592
Browse files Browse the repository at this point in the history
parse("[1] [2]") should throw a ParseError
  • Loading branch information
ranjanan committed Aug 12, 2016
1 parent 585fe0e commit 55e016d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/parse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -662,3 +662,8 @@ end

# issue #17701
@test expand(:(i==3 && i+=1)) == Expr(:error, "invalid assignment location \"==(i,3)&&i\"")

# PR #15592
let str = "[1] [2]"
@test_throws ParseError parse(str)
end

0 comments on commit 55e016d

Please sign in to comment.