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 18, 2015
1 parent cdd67df commit d4bab59
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 @@ -83,3 +83,14 @@ macro test999_str(args...); args; end

# issue #10994
@test parse("1 + #= \0 =# 2") == :(1 + 2)

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

@test parse(":(importall A)") == :(:(importall A))

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

0 comments on commit d4bab59

Please sign in to comment.