Skip to content

Commit

Permalink
Write up test for #15592
Browse files Browse the repository at this point in the history
parse("[1] [2]") should throw a ParseError

(cherry picked from commit 55e016d)
ref #17988
  • Loading branch information
ranjanan authored and tkelman committed Aug 20, 2016
1 parent 20673d9 commit bc19ea4
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 bc19ea4

Please sign in to comment.