diff options
author | Sadik Armagan <sadik.armagan@arm.com> | 2021-06-10 18:24:34 +0100 |
---|---|---|
committer | Sadik Armagan <sadik.armagan@arm.com> | 2021-06-11 10:33:16 +0000 |
commit | 1625efc870f1a8b7c6e6382277ddbb245f91a294 (patch) | |
tree | 39fbbaa15ed7eb81337b082c2d20b0af68b91c02 /src/armnnTfLiteParser/test/Reduce.cpp | |
parent | 958e0ba61e940a8d11955cf2a10f681c7c47e1fa (diff) | |
download | armnn-1625efc870f1a8b7c6e6382277ddbb245f91a294.tar.gz |
IVGCVSW-5963 'Move unit tests to new framework'
* Used doctest in ArmNN unit tests
Signed-off-by: Sadik Armagan <sadik.armagan@arm.com>
Change-Id: Ia9cf5fc72775878885c5f864abf2c56b3a935f1a
Diffstat (limited to 'src/armnnTfLiteParser/test/Reduce.cpp')
-rw-r--r-- | src/armnnTfLiteParser/test/Reduce.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/armnnTfLiteParser/test/Reduce.cpp b/src/armnnTfLiteParser/test/Reduce.cpp index c2a22f0b86..cde9d09cd3 100644 --- a/src/armnnTfLiteParser/test/Reduce.cpp +++ b/src/armnnTfLiteParser/test/Reduce.cpp @@ -3,15 +3,14 @@ // SPDX-License-Identifier: MIT // -#include <boost/test/unit_test.hpp> #include "ParserFlatbuffersFixture.hpp" #include "../TfLiteParser.hpp" #include <string> #include <iostream> -BOOST_AUTO_TEST_SUITE(TensorflowLiteParser) - +TEST_SUITE("TensorflowLiteParser_Reduce") +{ struct ReduceMaxFixture : public ParserFlatbuffersFixture { explicit ReduceMaxFixture(const std::string& inputShape, @@ -93,7 +92,7 @@ struct SimpleReduceMaxFixture : public ReduceMaxFixture SimpleReduceMaxFixture() : ReduceMaxFixture("[ 1, 1, 2, 3 ]", "[ 1, 1, 1, 3 ]", "[ 1 ]", "[ 2,0,0,0 ]") {} }; -BOOST_FIXTURE_TEST_CASE(ParseReduceMax, SimpleReduceMaxFixture) +TEST_CASE_FIXTURE(SimpleReduceMaxFixture, "ParseReduceMax") { RunTest<4, armnn::DataType::Float32, armnn::DataType::Float32> (0, {{ "inputTensor", { 1001.0f, 11.0f, 1003.0f, @@ -182,7 +181,7 @@ struct SimpleReduceMinFixture : public ReduceMinFixture SimpleReduceMinFixture() : ReduceMinFixture("[ 1, 1, 2, 3 ]", "[ 1, 1, 1, 3 ]", "[ 1 ]", "[ 2, 0, 0, 0 ]") {} }; -BOOST_FIXTURE_TEST_CASE(ParseReduceMin, SimpleReduceMinFixture) +TEST_CASE_FIXTURE(SimpleReduceMinFixture, "ParseReduceMin") { RunTest<4, armnn::DataType::Float32, armnn::DataType::Float32> (0, {{ "inputTensor", { 1001.0f, 11.0f, 1003.0f, @@ -190,4 +189,4 @@ BOOST_FIXTURE_TEST_CASE(ParseReduceMin, SimpleReduceMinFixture) {{ "outputTensor", { 10.0f, 11.0f, 12.0f } } }); } -BOOST_AUTO_TEST_SUITE_END() +} |