Skip to content

Commit

Permalink
Add test for parsing import/using
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed May 22, 2015
1 parent aa21080 commit 7a68ecc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/parser.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,14 @@ macro test999_str(args...); args; end

# issue #10985
@test expand(:(f(::Int...) = 1)).head == :method

# issue #10910
@test parse(":(using A)") == Expr(:quote, :(using A))
@test parse(":(using A.b, B)") == Expr(:quote, :(using A.b, B))
@test parse(":(using A: b, c.d)") == Expr(:quote, :(using A: b, c.d))

@test parse(":(importall A)") == Expr(:quote, :(importall A))

@test parse(":(import A)") == Expr(:quote, :(import A))
@test parse(":(import A.b, B)") == Expr(:quote, :(import A.b, B))
@test parse(":(import A: b, c.d)") == Expr(:quote, :(import A: b, c.d))

0 comments on commit 7a68ecc

Please sign in to comment.