From 05d1924d62130304bbc3f3b76ead39ef59bf62b5 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 15 Jun 2020 16:48:20 -0400 Subject: [PATCH] update for using {fmt} --- unittest/force-styles/test_error_stats.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/unittest/force-styles/test_error_stats.cpp b/unittest/force-styles/test_error_stats.cpp index ea0b36cbf7..86cf4f9df2 100644 --- a/unittest/force-styles/test_error_stats.cpp +++ b/unittest/force-styles/test_error_stats.cpp @@ -5,8 +5,9 @@ // include the implementation since ErrorStats is a standalone class // this way we don't have to link against the style_tests and lammps libs - #include "error_stats.cpp" +#include "fmtlib_format.cpp" +#include "fmtlib_os.cpp" TEST(ErrorStats, test) { @@ -25,7 +26,7 @@ TEST(ErrorStats, test) std::stringstream out; out << stats; - ASSERT_EQ(out.str(), " Average: 5.800e-01 StdDev: 7.305e-01 MaxErr: 2.000e+00 @ item: 3"); + ASSERT_EQ(out.str(), " Average: 5.800e-01 StdDev: 7.305e-01 MaxErr: 2.000e+00 @ item: 3.0"); stats.reset(); ASSERT_DOUBLE_EQ(stats.avg(), 0.0);