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/armnnTfLiteParser/test/Sub.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/armnnTfLiteParser/test/Sub.cpp') diff --git a/src/armnnTfLiteParser/test/Sub.cpp b/src/armnnTfLiteParser/test/Sub.cpp index 2854d81197..4e715ff712 100644 --- a/src/armnnTfLiteParser/test/Sub.cpp +++ b/src/armnnTfLiteParser/test/Sub.cpp @@ -3,15 +3,14 @@ // SPDX-License-Identifier: MIT // -#include #include "ParserFlatbuffersFixture.hpp" #include "../TfLiteParser.hpp" #include #include -BOOST_AUTO_TEST_SUITE(TensorflowLiteParser) - +TEST_SUITE("TensorflowLiteParser_Sub") +{ struct SubFixture : public ParserFlatbuffersFixture { explicit SubFixture(const std::string & inputShape1, @@ -95,7 +94,7 @@ struct SimpleSubFixture : SubFixture "[ 1, 4 ]") {} }; -BOOST_FIXTURE_TEST_CASE(SimpleSub, SimpleSubFixture) +TEST_CASE_FIXTURE(SimpleSubFixture, "SimpleSub") { RunTest<2, armnn::DataType::QAsymmU8>( 0, @@ -111,7 +110,7 @@ struct DynamicSubFixture : SubFixture "[ ]") {} }; -BOOST_FIXTURE_TEST_CASE(DynamicSub, DynamicSubFixture) +TEST_CASE_FIXTURE(DynamicSubFixture, "DynamicSub") { RunTest<2, armnn::DataType::QAsymmU8, armnn::DataType::QAsymmU8>( 0, @@ -121,4 +120,4 @@ BOOST_FIXTURE_TEST_CASE(DynamicSub, DynamicSubFixture) true); } -BOOST_AUTO_TEST_SUITE_END() +} -- cgit v1.2.1