From 6460f7c0a59833e2729157d246ee07806ff56126 Mon Sep 17 00:00:00 2001 From: Jose Luis Rivero Date: Sat, 14 Oct 2023 00:07:01 +0200 Subject: [PATCH] Remove the use of numeric_limits in appendToStream test (#553) Signed-off-by: Jose Luis Rivero Signed-off-by: Michael Carroll Co-authored-by: Michael Carroll Co-authored-by: Michael Carroll --- src/Helpers_TEST.cc | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/src/Helpers_TEST.cc b/src/Helpers_TEST.cc index e7f6242c..fe09adea 100644 --- a/src/Helpers_TEST.cc +++ b/src/Helpers_TEST.cc @@ -1011,27 +1011,10 @@ TEST(HelpersTest, AppendToStream) math::appendToStream(out, pi); EXPECT_EQ(out.str(), "0 456 0 3.14159 3.141592654"); -// Skip end of test for arm64 -#if !defined __ARM_ARCH - out << " " - << std::setprecision(std::numeric_limits::digits10 + 1); - - math::appendToStream(out, pi); -#if defined(_WIN32) && !defined(__amd64__) && !defined(__i386__) - EXPECT_EQ(out.str(), "0 456 0 3.14159 3.141592654 3.141592653589793"); -#else - EXPECT_EQ(out.str(), "0 456 0 3.14159 3.141592654 3.141592653589793239"); -#endif - out << " " << std::setprecision(3); math::appendToStream(out, pi); -#if defined(_WIN32) && !defined(__amd64__) && !defined(__i386__) - EXPECT_EQ(out.str(), "0 456 0 3.14159 3.141592654 3.141592653589793 3.14"); -#else - EXPECT_EQ(out.str(), "0 456 0 3.14159 3.141592654 3.141592653589793239 3.14"); -#endif -// ifndef __ARM_ARCH -#endif + EXPECT_EQ(out.str(), "0 456 0 3.14159 3.141592654 3.14"); } +