From 423d88fb7e35333cd243fbe04a8558fd5ac1489f Mon Sep 17 00:00:00 2001 From: steniu01 Date: Thu, 22 Jun 2017 10:20:37 +0100 Subject: COMPMID-250 handle single float comparision Change-Id: I0007dfba16952d427e73185d9c971e79e9f612c9 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/78507 Reviewed-by: Moritz Pflanzer Tested-by: Kaizen --- tests/validation/Validation.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/validation/Validation.cpp') diff --git a/tests/validation/Validation.cpp b/tests/validation/Validation.cpp index c1c43c05c4..89f91c0dd9 100644 --- a/tests/validation/Validation.cpp +++ b/tests/validation/Validation.cpp @@ -392,6 +392,16 @@ void validate(std::vector classified_labels, std::vector::epsilon(), float tolerance_relative_error = 0.0001f) +{ + const bool equal = is_equal(target, ref, tolerance_abs_error, tolerance_relative_error); + + BOOST_TEST_INFO("reference = " << std::setprecision(5) << ref); + BOOST_TEST_INFO("target = " << std::setprecision(5) << target); + BOOST_TEST(equal); +} + } // namespace validation } // namespace test } // namespace arm_compute -- cgit v1.2.1