Skip to content

Commit 92d4a17

Browse files
test: update rewrite test
1 parent 6fe4a45 commit 92d4a17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/rewrite.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ end
115115

116116
r_mix = @rule (~x + (~y)*(~!c))^(~!m) => (~m, ~c)
117117
res = r_mix((a + b*c)^2)
118-
@test res === (2, c) || res === (2, b)
118+
@test res === (2, c) || res === (2, b) || res === (2, 1)
119119
res = r_mix((a + b*c))
120-
@test res === (1, c) || res === (1, b)
120+
@test res === (1, c) || res === (1, b) || res === (1, 1)
121121
@test r_mix((a + b)) === (1, 1)
122122

123123
r_more_than_two_arguments = @rule (~!a)*exp(~x)*sin(~x) => (~a, ~x)

0 commit comments

Comments
 (0)