Skip to content

Commit

Permalink
Merge pull request #643 from JuliaSymbolics/fix/where-rule-scope
Browse files Browse the repository at this point in the history
Fix: Correct Scope of Symbolic Variable in `where` Rule Test
  • Loading branch information
bowenszhu authored Aug 30, 2024
2 parents 2afe8b9 + fc75095 commit 3303acf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/rulesets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,10 @@ _g(y) = sin
@test @rule($(_g(1))(a) => 2)(sin(a)) == 2
end

@syms a
_f(x) = x === a
@testset "where" begin

@syms a b
_f(x) = x === a
r = @rule ~x => ~x where {_f(~x)}
@eqtest r(a) == a
@test isnothing(r(b))
Expand Down

0 comments on commit 3303acf

Please sign in to comment.