Skip to content

Commit 9999985

Browse files
committed
add test
1 parent d3d6478 commit 9999985

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/match.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,11 @@ let
8888
@capture(ex, @foo(a_,b_))
8989
@test (a, b) == (:a, :b)
9090
end
91+
92+
# https://github.com/FluxML/MacroTools.jl/pull/149
93+
let
94+
ex = :(sin(a, b))
95+
f = :sin
96+
@capture(ex, $f(args__))
97+
@test args == [:a, :b]
98+
end

0 commit comments

Comments
 (0)