Skip to content

Commit fc75095

Browse files
committed
Fix: Correct scope of a in where rule test
1 parent 2afe8b9 commit fc75095

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/rulesets.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,10 @@ _g(y) = sin
185185
@test @rule($(_g(1))(a) => 2)(sin(a)) == 2
186186
end
187187

188-
@syms a
189-
_f(x) = x === a
190188
@testset "where" begin
191189

192190
@syms a b
191+
_f(x) = x === a
193192
r = @rule ~x => ~x where {_f(~x)}
194193
@eqtest r(a) == a
195194
@test isnothing(r(b))

0 commit comments

Comments
 (0)