Skip to content

Commit

Permalink
Add test for incorrect parsing of doc strings
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed Aug 7, 2015
1 parent 0e82bb6 commit 1baab60
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/parse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -274,3 +274,15 @@ for T in (UInt8,UInt16,UInt32,UInt64)
end

@test parse("1 == 2|>3") == Expr(:comparison, 1, :(==), Expr(:call, :(|>), 2, 3))

# issue #12501 and pr #12502
parse("""
baremodule A
"a" in b
end
""")
parse("""
baremodule A
"a"
end
""")

0 comments on commit 1baab60

Please sign in to comment.