From: Сергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자 Date: Thu, 31 Jan 2019 19:07:10 +0000 (+0300) Subject: [nnc] Fix Graph.ReplaceInputs test (#2985) X-Git-Tag: nncc_backup~891 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=812b64a358f2b13ae7cd1e7e239c01bae9519ae5;p=platform%2Fcore%2Fml%2Fnnfw.git [nnc] Fix Graph.ReplaceInputs test (#2985) Adjust test to new IR behavior: order of input nodes is not deterministic. Signed-off-by: Sergei Barannikov --- 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; };