From 812b64a358f2b13ae7cd1e7e239c01bae9519ae5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=91=D0=B0=D1=80?= =?utf8?q?=D0=B0=D0=BD=D0=BD=D0=B8=D0=BA=D0=BE=D0=B2/AI=20Tools=20Lab=20/S?= =?utf8?q?RR/Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Thu, 31 Jan 2019 22:07:10 +0300 Subject: [PATCH] [nnc] Fix Graph.ReplaceInputs test (#2985) Adjust test to new IR behavior: order of input nodes is not deterministic. Signed-off-by: Sergei Barannikov --- contrib/nnc/unittests/core/Graph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/nnc/unittests/core/Graph.cpp b/contrib/nnc/unittests/core/Graph.cpp index 19beffc..0cd8801 100644 --- a/contrib/nnc/unittests/core/Graph.cpp +++ b/contrib/nnc/unittests/core/Graph.cpp @@ -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; }; -- 2.7.4