mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-24 08:10:50 +01:00
Continue addition simplification
This commit is contained in:
4
test.cpp
4
test.cpp
@@ -236,7 +236,9 @@ void testSimplify() {
|
||||
a.deepReduce();
|
||||
|
||||
assert_expression_approximates_to(a, 3);
|
||||
assert(a.numberOfChildren() == 3);
|
||||
assert(a.numberOfChildren() == 1);
|
||||
assert(a.childAtIndex(0).castedNode()->type() == ExpressionNode::Type::Float);
|
||||
assert(a.childAtIndex(0).castedNode()->approximate() == 3.0f);
|
||||
}
|
||||
|
||||
void testChildSort() {
|
||||
|
||||
Reference in New Issue
Block a user