From 1625efc870f1a8b7c6e6382277ddbb245f91a294 Mon Sep 17 00:00:00 2001 From: Sadik Armagan Date: Thu, 10 Jun 2021 18:24:34 +0100 Subject: IVGCVSW-5963 'Move unit tests to new framework' * Used doctest in ArmNN unit tests Signed-off-by: Sadik Armagan Change-Id: Ia9cf5fc72775878885c5f864abf2c56b3a935f1a --- src/armnn/test/ExecutionFrameTest.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/armnn/test/ExecutionFrameTest.cpp') diff --git a/src/armnn/test/ExecutionFrameTest.cpp b/src/armnn/test/ExecutionFrameTest.cpp index c3480217a8..59accb45b7 100644 --- a/src/armnn/test/ExecutionFrameTest.cpp +++ b/src/armnn/test/ExecutionFrameTest.cpp @@ -3,7 +3,7 @@ // SPDX-License-Identifier: MIT // -#include +#include #include @@ -14,7 +14,9 @@ // B // | // C -BOOST_AUTO_TEST_CASE(NextExecutionFrameTest) +TEST_SUITE("NextExecutionFrameTestSuite") +{ +TEST_CASE("NextExecutionFrameTest") { armnn::ExecutionFrame executionFrameA; armnn::ExecutionFrame executionFrameB; @@ -28,11 +30,12 @@ BOOST_AUTO_TEST_CASE(NextExecutionFrameTest) auto nextExecutionFrameB = executionFrameB.ExecuteWorkloads(&executionFrameA); auto nextExecutionFrameC = executionFrameC.ExecuteWorkloads(&executionFrameB); - BOOST_CHECK_EQUAL(nextExecutionFrameA, &executionFrameB); - BOOST_CHECK_EQUAL(nextExecutionFrameB, &executionFrameC); + CHECK_EQ(nextExecutionFrameA, &executionFrameB); + CHECK_EQ(nextExecutionFrameB, &executionFrameC); - BOOST_CHECK(!nextExecutionFrameC); + CHECK(!nextExecutionFrameC); - BOOST_CHECK_NE(nextExecutionFrameA, &executionFrameC); + CHECK_NE(nextExecutionFrameA, &executionFrameC); +} } -- cgit v1.2.1