diff options
author | Moritz Pflanzer <moritz.pflanzer@arm.com> | 2017-08-04 11:34:44 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:16:42 +0100 |
commit | 24a82463b683322a6bb11a103746ea9d9b3f53fb (patch) | |
tree | a444ba8dcc8c3cddd2540e722de49de7c0676e73 /tests | |
parent | 4dfc235367e602a366952a8495679e339d7a7263 (diff) | |
download | ComputeLibrary-24a82463b683322a6bb11a103746ea9d9b3f53fb.tar.gz |
COMPMID-415: Use printer for errors
Change-Id: Idc2fc1dfd5706580d15c2bbfffe2830d41075a4b
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/82908
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/validation_new/Validation.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/validation_new/Validation.h b/tests/validation_new/Validation.h index b21d12932a..0766636c78 100644 --- a/tests/validation_new/Validation.h +++ b/tests/validation_new/Validation.h @@ -308,9 +308,9 @@ void validate(const IAccessor &tensor, const SimpleTensor<T> &reference, const V { ARM_COMPUTE_TEST_INFO("id = " << id); ARM_COMPUTE_TEST_INFO("channel = " << c); - ARM_COMPUTE_TEST_INFO("target = " << std::setprecision(5) << target_value); - ARM_COMPUTE_TEST_INFO("reference = " << std::setprecision(5) << reference_value); - ARM_COMPUTE_TEST_INFO("tolerance = " << std::setprecision(5) << tolerance_value); + ARM_COMPUTE_TEST_INFO("target = " << std::setprecision(5) << framework::make_printable(target_value)); + ARM_COMPUTE_TEST_INFO("reference = " << std::setprecision(5) << framework::make_printable(reference_value)); + ARM_COMPUTE_TEST_INFO("tolerance = " << std::setprecision(5) << framework::make_printable(static_cast<typename U::value_type>(tolerance_value))); ARM_COMPUTE_EXPECT_EQUAL(target_value, reference_value, framework::LogLevel::DEBUG); ++num_mismatches; @@ -335,9 +335,9 @@ void validate(const IAccessor &tensor, const SimpleTensor<T> &reference, const V template <typename T, typename U> void validate(T target, T reference, U tolerance) { - ARM_COMPUTE_TEST_INFO("reference = " << std::setprecision(5) << reference); - ARM_COMPUTE_TEST_INFO("target = " << std::setprecision(5) << target); - ARM_COMPUTE_TEST_INFO("tolerance = " << std::setprecision(5) << tolerance); + ARM_COMPUTE_TEST_INFO("reference = " << std::setprecision(5) << framework::make_printable(reference)); + ARM_COMPUTE_TEST_INFO("target = " << std::setprecision(5) << framework::make_printable(target)); + ARM_COMPUTE_TEST_INFO("tolerance = " << std::setprecision(5) << framework::make_printable(static_cast<typename U::value_type>(tolerance))); ARM_COMPUTE_EXPECT((compare<U, typename U::value_type>(target, reference, tolerance)), framework::LogLevel::ERRORS); } } // namespace validation |