Skip to content

Commit bc19ea4

Browse files
ranjanantkelman
authored andcommitted
Write up test for #15592
parse("[1] [2]") should throw a ParseError (cherry picked from commit 55e016d) ref #17988
1 parent 20673d9 commit bc19ea4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/parse.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,3 +662,8 @@ end
662662

663663
# issue #17701
664664
@test expand(:(i==3 && i+=1)) == Expr(:error, "invalid assignment location \"==(i,3)&&i\"")
665+
666+
# PR #15592
667+
let str = "[1] [2]"
668+
@test_throws ParseError parse(str)
669+
end

0 commit comments

Comments
 (0)