Skip to content

Commit

Permalink
More extensive testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Jan 11, 2020
1 parent 5ed0714 commit c8e6159
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions test/syntax.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1977,14 +1977,16 @@ f33987(args::(Vararg{Any, N} where N); kwargs...) = args
Expr(:call, :/>>, Expr(:call, :|>, Expr(:call, :|>>, :a, :b), :c), :d)
@test Meta.parse("a<<|b<|c<</d") ==
Expr(:call, :<<|, :a, Expr(:call, :<|, :b, Expr(:call, :<</, :c, :d)))
@test Meta.parse("a/>b/>c/>d") ==
Expr(:call, :/>, Expr(:call, :/>, Expr(:call, :/>, :a, :b), :c), :d)
@test Meta.parse(raw"a\>b\>c\>d") ==
Expr(:call, :\>, Expr(:call, :\>, Expr(:call, :\>, :a, :b), :c), :d)
@test Meta.parse("a</b</c</d") ==
Expr(:call, :</, :a, Expr(:call, :</, :b, Expr(:call, :</, :c, :d)))
@test Meta.parse(raw"a<\b<\c<\d") ==
Expr(:call, :<\, :a, Expr(:call, :<\, :b, Expr(:call, :<\, :c, :d)))
@testset for op in [:/>, :/>>, :\>, :\>>]
@test Meta.parse("a$(op)b$(op)c$(op)d") ==
Meta.parse("a $(op) b $(op) c $(op) d") ==
Expr(:call, op, Expr(:call, op, Expr(:call, op, :a, :b), :c), :d)
end
@testset for op in [:</, :<</, :<\, :<<\]
@test Meta.parse("a$(op)b$(op)c$(op)d") ==
Meta.parse("a $(op) b $(op) c $(op) d") ==
Expr(:call, op, :a, Expr(:call, op, :b, Expr(:call, op, :c, :d)))
end

macro id_for_kwarg(x); x; end
Xo65KdlD = @id_for_kwarg let x = 1
Expand Down

0 comments on commit c8e6159

Please sign in to comment.