From 31ed3b5eefed1e6f860e0a8cdcc12c5c4ba78b68 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=B2=9C=EA=B5=90/On-Device=20Lab=28SR=29/Enginee?= =?utf8?q?r/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Wed, 30 Jan 2019 20:18:47 +0900 Subject: [PATCH] [coco] KernelObjectTest with comparing Shape (#2952) This commit applies TODO comment. KernelObjectTest now compares Shape with operator==. Signed-off-by: Cheongyo Bahk --- contrib/coco/core/src/IR/KernelObject.test.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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); } -- 2.7.4