Skip to content

Commit 51b335b

Browse files
authored
Merge pull request #378 from peterahrens/pja/no-export-capture
Pja/no export capture
2 parents 48cc5ff + b2228f7 commit 51b335b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/SymbolicUtils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ include("rewriters.jl")
3535
using .Rewriters
3636

3737
using Combinatorics: permutations, combinations
38-
export @rule, @acrule, RuleSet, @capture
38+
export @rule, @acrule, RuleSet
3939

4040
# Rule type and @rule macro
4141
include("rule.jl")

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)