From: 박천교/On-Device Lab(SR)/Engineer/삼성전자 Date: Wed, 30 Jan 2019 11:18:47 +0000 (+0900) Subject: [coco] KernelObjectTest with comparing Shape (#2952) X-Git-Tag: nncc_backup~900 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=31ed3b5eefed1e6f860e0a8cdcc12c5c4ba78b68;p=platform%2Fcore%2Fml%2Fnnfw.git [coco] KernelObjectTest with comparing Shape (#2952) This commit applies TODO comment. KernelObjectTest now compares Shape with operator==. Signed-off-by: Cheongyo Bahk --- diff --git a/contrib/coco/core/src/IR/KernelObject.test.cpp b/contrib/coco/core/src/IR/KernelObject.test.cpp index 4aeba23..d1fa24e 100644 --- a/contrib/coco/core/src/IR/KernelObject.test.cpp +++ b/contrib/coco/core/src/IR/KernelObject.test.cpp @@ -52,12 +52,7 @@ TEST_F(KernelObjectTest, constructor) const nncc::core::ADT::kernel::Shape shape{1, 1, 3, 3}; auto o = allocate(shape); - // TODO Use ASSERT_EQ(o.shape(), shape) (operator== overload is not yet available) - ASSERT_EQ(o->shape().depth(), shape.depth()); - ASSERT_EQ(o->shape().count(), shape.count()); - ASSERT_EQ(o->shape().height(), shape.height()); - ASSERT_EQ(o->shape().width(), shape.width()); - + ASSERT_EQ(o->shape(), shape); ASSERT_EQ(o->kind(), coco::Object::Kind::Kernel); }