Skip to content

Commit

Permalink
Fixed failing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Iluvmagick committed Feb 27, 2025
1 parent a92f714 commit dea6600
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ BOOST_AUTO_TEST_CASE(arena_expression_test_random) {
BOOST_CHECK(classic_result == *arena_result[1]);
// also check that the child nodes are the same: we don't redo the computation
BOOST_CHECK(arena_expr.root_nodes[0]->children() == arena_expr.root_nodes[1]->children());
std::size_t non_null_children = 0;
// disabled this as we no longer clear caches after evaluation
/*std::size_t non_null_children = 0;
auto visitor = [&non_null_children](const std::shared_ptr<arena_node<var>> &node) {
auto arena_op_node = std::dynamic_pointer_cast<arena_op<var>>(node);
if (arena_op_node) {
Expand All @@ -172,7 +173,7 @@ BOOST_AUTO_TEST_CASE(arena_expression_test_random) {
};
arena_expr.visit_const(visitor);
// check that we have correctly cleared the caches
BOOST_CHECK(non_null_children == 0);
BOOST_CHECK(non_null_children == 0);*/
}

BOOST_AUTO_TEST_CASE(arena_expression_test_degree) {
Expand Down

0 comments on commit dea6600

Please sign in to comment.