Skip to content

Commit

Permalink
SumSurdReduce_test
Browse files Browse the repository at this point in the history
  • Loading branch information
ohhmm committed Jan 24, 2025
1 parent 111cd1e commit 1ebc9c6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions omnn/math/test/Sum_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ BOOST_AUTO_TEST_CASE(SumBalancingTest) {
BOOST_TEST(_.size() == 2);
}

BOOST_AUTO_TEST_CASE(SumSurdReduce_test) {
auto equation = "-4 + sqrt(-1*(x^2) + 8)"_v;
auto reduced = equation.Optimized(Valuable::View::SupersetOfRoots);
auto& variable = *equation.FindVa();
auto roots = reduced.solve(variable);
BOOST_TEST(roots.size() == 2);
roots = equation.solve(variable);
BOOST_TEST(roots.size() == 2);
}

BOOST_AUTO_TEST_CASE(SumMultivalTestRootTest
, *disabled()
) {
Expand Down

0 comments on commit 1ebc9c6

Please sign in to comment.