Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / multiprecision / test / test_mpf_precisions.cpp
index ba12e14..4148b5b 100644 (file)
@@ -9,7 +9,7 @@
 // in ACM TOMS, {VOL 37, ISSUE 4, (February 2011)} (C) ACM, 2011. http://doi.acm.org/10.1145/1916461.1916469
 
 #ifdef _MSC_VER
-#  define _SCL_SECURE_NO_WARNINGS
+#define _SCL_SECURE_NO_WARNINGS
 #endif
 
 #include <boost/detail/lightweight_test.hpp>
@@ -80,23 +80,22 @@ int main()
       BOOST_CHECK_GE(a.precision(), 100);
    }
 
-
    //
    // string_view with explicit precision:
    //
 #ifndef BOOST_NO_CXX17_HDR_STRING_VIEW
    {
-      std::string s("222");
+      std::string      s("222");
       std::string_view v(s.c_str(), 1);
-      mpf_float f(v, 100);
+      mpf_float        f(v, 100);
       BOOST_CHECK_EQUAL(f, 2);
       BOOST_CHECK_GE(f.precision(), 100);
    }
 #endif
    // Swap:
    {
-      mpf_float x(2, 100);  // 100 digits precision.
-      mpf_float y(3, 50);   // 50 digits precision.
+      mpf_float x(2, 100); // 100 digits precision.
+      mpf_float y(3, 50);  // 50 digits precision.
       swap(x, y);
       BOOST_CHECK_EQUAL(x, 3);
       BOOST_CHECK_EQUAL(y, 2);
@@ -137,7 +136,5 @@ int main()
       BOOST_CHECK_GE(f4.precision(), 50);
    }
 
-
    return boost::report_errors();
 }
-