From d4bab5906ecec62f0a354835d5cc7a0e6c5349ac Mon Sep 17 00:00:00 2001 From: Yichao Yu Date: Mon, 18 May 2015 16:30:14 -0400 Subject: [PATCH] Add test for parsing import/using --- test/parser.jl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/parser.jl b/test/parser.jl index 84830eafbaa1b..d1df82ef4dbc6 100644 --- a/test/parser.jl +++ b/test/parser.jl @@ -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))