Skip to content

Commit

Permalink
Fix Piecewise condition in test_cse
Browse files Browse the repository at this point in the history
  • Loading branch information
bjodah committed Mar 17, 2023
1 parent ba4a049 commit 3570b30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions symengine/tests/basic/test_cse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ TEST_CASE("CSE: simple", "[cse]")
vec_basic reduced;
cse(substs, reduced, {pw2});
REQUIRE(unified_eq(substs, {{x0, add(x, y)}}));
REQUIRE(unified_eq(reduced, {piecewise({{pow(x, i2), Gt(x0, i2)},
{sqrt(y), Gt(x0, i3)},
REQUIRE(unified_eq(reduced, {piecewise({{pow(x, i2), Gt(x0, i3)},
{sqrt(y), Gt(x0, i2)},
{sqrt(x), boolTrue}})}));
}
}
Expand Down

0 comments on commit 3570b30

Please sign in to comment.