aboutsummaryrefslogtreecommitdiff
path: root/tests/framework/Asserts.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/framework/Asserts.h')
-rw-r--r--tests/framework/Asserts.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/framework/Asserts.h b/tests/framework/Asserts.h
index 28d3da9a85..7adfa8f2f3 100644
--- a/tests/framework/Asserts.h
+++ b/tests/framework/Asserts.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2021 Arm Limited.
+ * Copyright (c) 2017-2022 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -30,6 +30,8 @@
#include <sstream>
#include <type_traits>
+#include "utils/TypePrinter.h"
+
namespace arm_compute
{
namespace test
@@ -42,6 +44,11 @@ inline int make_printable(int8_t value)
return value;
}
+inline std::string make_printable(const arm_compute::WeightFormat wf)
+{
+ return arm_compute::to_string(wf);
+}
+
inline unsigned int make_printable(uint8_t value)
{
return value;