Skip to content

Commit b2228f7

Browse files
committed
add using @capture in tests
1 parent 3f802af commit b2228f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/rewrite.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ end
4343
@eqtest @rule(+(~~x,~y,~~x) => (~~x, ~y, ~~x))(term(+,6,type=Any)) == ([], 6, [])
4444
end
4545

46+
using SymbolicUtils: @capture
47+
4648
@testset "Capture form" begin
49+
4750
ex = a^a
4851

4952
#note that @test inserts a soft local scope (try-catch) that would gobble
@@ -72,4 +75,4 @@ end
7275

7376
@eqtest f(b^b) == b
7477
@test f(b+b) == nothing
75-
end
78+
end

0 commit comments

Comments
 (0)