[nnc] Fix Graph.ReplaceInputs test (#2985)
authorСергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자 <s.barannikov@samsung.com>
Thu, 31 Jan 2019 19:07:10 +0000 (22:07 +0300)
committerEfimov Alexander/AI Tools Lab/./Samsung Electronics <a.efimov@samsung.com>
Thu, 31 Jan 2019 19:07:10 +0000 (22:07 +0300)
Adjust test to new IR behavior: order of input nodes is not deterministic.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
contrib/nnc/unittests/core/Graph.cpp

index 19beffc..0cd8801 100644 (file)
@@ -48,7 +48,7 @@ TEST(Graph, ReplaceInputs) {
   g->accept(&d);
 
   auto str = ss.str();
-  ASSERT_EQ(str, "iop1iop4rop2rop3cop5");
+  ASSERT_TRUE(str == "iop1iop4rop2rop3cop5" || str == "iop4iop1rop2rop3cop5") << "str = " << str;
   delete g;
 };