From d7c2bda15b8f6a68685f19c16f14a7c6eefb8447 Mon Sep 17 00:00:00 2001
From: Olivier BICHLER <olivier.bichler@cea.fr>
Date: Thu, 5 Dec 2024 14:06:53 +0100
Subject: [PATCH] Added more checks

---
 unit_tests/recipes/Test_ToGenericOp.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/unit_tests/recipes/Test_ToGenericOp.cpp b/unit_tests/recipes/Test_ToGenericOp.cpp
index 886e07f95..1cc5d144e 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());
-- 
GitLab