update for using {fmt}

This commit is contained in:
Axel Kohlmeyer
2020-06-15 16:48:20 -04:00
parent 14c22a004a
commit 05d1924d62

View File

@ -5,8 +5,9 @@
// include the implementation since ErrorStats is a standalone class // include the implementation since ErrorStats is a standalone class
// this way we don't have to link against the style_tests and lammps libs // this way we don't have to link against the style_tests and lammps libs
#include "error_stats.cpp" #include "error_stats.cpp"
#include "fmtlib_format.cpp"
#include "fmtlib_os.cpp"
TEST(ErrorStats, test) TEST(ErrorStats, test)
{ {
@ -25,7 +26,7 @@ TEST(ErrorStats, test)
std::stringstream out; std::stringstream out;
out << stats; 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(); stats.reset();
ASSERT_DOUBLE_EQ(stats.avg(), 0.0); ASSERT_DOUBLE_EQ(stats.avg(), 0.0);