aboutsummaryrefslogtreecommitdiff
path: root/src/armnnTfLiteParser/test/LeakyRelu.cpp
diff options
context:
space:
mode:
authorSadik Armagan <sadik.armagan@arm.com>2021-06-10 18:24:34 +0100
committerSadik Armagan <sadik.armagan@arm.com>2021-06-11 10:33:16 +0000
commit1625efc870f1a8b7c6e6382277ddbb245f91a294 (patch)
tree39fbbaa15ed7eb81337b082c2d20b0af68b91c02 /src/armnnTfLiteParser/test/LeakyRelu.cpp
parent958e0ba61e940a8d11955cf2a10f681c7c47e1fa (diff)
downloadarmnn-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/LeakyRelu.cpp')
-rw-r--r--src/armnnTfLiteParser/test/LeakyRelu.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/armnnTfLiteParser/test/LeakyRelu.cpp b/src/armnnTfLiteParser/test/LeakyRelu.cpp
index 471c01444c..20f95abee5 100644
--- a/src/armnnTfLiteParser/test/LeakyRelu.cpp
+++ b/src/armnnTfLiteParser/test/LeakyRelu.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_LeakyRelu")
+{
struct LeakyReluFixture : public ParserFlatbuffersFixture
{
explicit LeakyReluFixture()
@@ -69,11 +68,11 @@ struct LeakyReluFixture : public ParserFlatbuffersFixture
}
};
-BOOST_FIXTURE_TEST_CASE(ParseLeakyRelu, LeakyReluFixture)
+TEST_CASE_FIXTURE(LeakyReluFixture, "ParseLeakyRelu")
{
RunTest<2, armnn::DataType::Float32>(0,
{{ "inputTensor", { -0.1f, -0.2f, -0.3f, -0.4f, 0.1f, 0.2f, 0.3f }}},
{{ "outputTensor", { -0.001f, -0.002f, -0.003f, -0.004f, 0.1f, 0.2f, 0.3f }}});
}
-BOOST_AUTO_TEST_SUITE_END()
+}