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/Pad.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/Pad.cpp')
-rw-r--r-- | src/armnnTfLiteParser/test/Pad.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/armnnTfLiteParser/test/Pad.cpp b/src/armnnTfLiteParser/test/Pad.cpp index aab1536628..1ac06277f8 100644 --- a/src/armnnTfLiteParser/test/Pad.cpp +++ b/src/armnnTfLiteParser/test/Pad.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_Pad") +{ struct PadFixture : public ParserFlatbuffersFixture { explicit PadFixture(const std::string& inputShape, @@ -93,7 +92,7 @@ struct SimplePadFixture : public PadFixture "[ 1,0,0,0, 1,0,0,0, 2,0,0,0, 2,0,0,0 ]") {} }; -BOOST_FIXTURE_TEST_CASE(ParsePad, SimplePadFixture) +TEST_CASE_FIXTURE(SimplePadFixture, "ParsePad") { RunTest<2, armnn::DataType::Float32> (0, @@ -111,7 +110,7 @@ struct Uint8PadFixture : public PadFixture "UINT8", "-2.0", "3") {} }; -BOOST_FIXTURE_TEST_CASE(ParsePadUint8, Uint8PadFixture) +TEST_CASE_FIXTURE(Uint8PadFixture, "ParsePadUint8") { RunTest<2, armnn::DataType::QAsymmU8> (0, @@ -129,7 +128,7 @@ struct Int8PadFixture : public PadFixture "INT8", "-2.0", "3") {} }; -BOOST_FIXTURE_TEST_CASE(ParsePadInt8, Int8PadFixture) +TEST_CASE_FIXTURE(Int8PadFixture, "ParsePadInt8") { RunTest<2, armnn::DataType::QAsymmS8> (0, @@ -140,4 +139,4 @@ BOOST_FIXTURE_TEST_CASE(ParsePadInt8, Int8PadFixture) 3, 3, 3, 3, 3, 3, 3 }}}); } -BOOST_AUTO_TEST_SUITE_END() +} |