Skip to content

Commit 144a0ae

Browse files
committed
add a test
1 parent 76929d7 commit 144a0ae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/rulesets.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ end
104104
@eqtest simplify(exp(a) * a * exp(b)) == simplify(a*exp(a+b))
105105
end
106106

107+
@testset "simplify_fractions" begin
108+
@syms x y z
109+
@eqtest simplify(2*((y + z)/x) - 2*y/x - z/x*2) == 0
110+
end
111+
107112
@testset "Depth" begin
108113
@syms x
109114
R = Rewriters.Postwalk(Rewriters.Chain([@rule(sin(~x) => cos(~x)),

0 commit comments

Comments
 (0)