From 82361fc45e521293ff2183967bd1a60b2b84c265 Mon Sep 17 00:00:00 2001 From: Nick Thompson <4nt@ornl.gov> Date: Tue, 13 Apr 2021 19:09:55 -0400 Subject: [PATCH] Better message on failure for DifferenceOfProducts. --- vtkm/testing/UnitTestMath.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vtkm/testing/UnitTestMath.cxx b/vtkm/testing/UnitTestMath.cxx index 7539f1dd9..868c4a8ba 100644 --- a/vtkm/testing/UnitTestMath.cxx +++ b/vtkm/testing/UnitTestMath.cxx @@ -856,10 +856,10 @@ struct ScalarVectorFieldTests : public vtkm::exec::FunctorBase vtkm::UInt64 dist = vtkm::FloatDistance(expected, computed); VTKM_MATH_ASSERT( dist < 2, - "Float distance for difference of products is which exceeds 1.5; this is in violation of a " - "theorem " - "proved by Jeannerod in doi.org/10.1090/S0025-5718-2013-02679-8. Is your build compiled " - "with FMAs enabled?"); + "Float distance for difference of products is " + std::to_string(dist) + + " which exceeds 1.5; this is in violation of a theorem " + "proved by Jeannerod in doi.org/10.1090/S0025-5718-2013-02679-8. Is your build compiled " + "with FMAs enabled?"); #endif }