diff --git a/unit_tests/recipes/Test_ToGenericOp.cpp b/unit_tests/recipes/Test_ToGenericOp.cpp index 886e07f953afa26fed885d8af35b78b1fca56ae1..1cc5d144e58835d4a8c7d5ac3c2a2655975d3283 100644 --- a/unit_tests/recipes/Test_ToGenericOp.cpp +++ b/unit_tests/recipes/Test_ToGenericOp.cpp @@ -74,10 +74,13 @@ TEST_CASE("[graph/convert] toGenericOp", "[toGenericOp][recipies]") { } } + REQUIRE(metaOpNode); + REQUIRE(!metaOpNode->getOperator()->isAtomic()); auto newGenOp = g->getNode("ConvReLUFC_0"); // Ensure the conversion REQUIRE(newGenOp->type() == "ConvReLUFC"); + REQUIRE(std::dynamic_pointer_cast<GenericOperator_Op>(newGenOp->getOperator())); const auto metaOpAttr = *std::static_pointer_cast<DynamicAttributes>(metaOpNode->getOperator()->attributes()); const auto newGenOpAttr = *std::static_pointer_cast<DynamicAttributes>(newGenOp->getOperator()->attributes());