diff --git a/libcxx/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_long_double.pass.cpp b/libcxx/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_long_double.pass.cpp --- a/libcxx/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_long_double.pass.cpp +++ b/libcxx/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_long_double.pass.cpp @@ -13,7 +13,6 @@ // iter_type put(iter_type s, ios_base& iob, char_type fill, long double v) const; // XFAIL: win32-broken-printf-g-precision -// XFAIL: LIBCXX-AIX-FIXME #include #include @@ -8930,6 +8929,15 @@ char str[200]; std::locale lc = std::locale::classic(); std::locale lg(lc, new my_numpunct); + std::string ninf_sign = "-"; +#ifdef _AIX + std::string inf = "INF"; +#else + std::string inf = "inf"; +#endif + std::string INF = "INF"; + std::string inf_padding25 = "*********************"; + const my_facet f(1); { long double v = -INFINITY; @@ -8950,7 +8958,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -8958,7 +8966,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -8966,7 +8974,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -8974,7 +8982,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -8984,7 +8992,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -8992,7 +9000,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9000,7 +9008,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -9008,7 +9016,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -9021,7 +9029,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -9029,7 +9037,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9037,7 +9045,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -9045,7 +9053,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -9055,7 +9063,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -9063,7 +9071,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9071,7 +9079,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -9079,7 +9087,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -9095,7 +9103,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -9103,7 +9111,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9111,7 +9119,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -9119,7 +9127,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -9129,7 +9137,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -9137,7 +9145,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9145,7 +9153,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -9153,7 +9161,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -9166,7 +9174,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -9174,7 +9182,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9182,7 +9190,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -9190,7 +9198,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -9200,7 +9208,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -9208,7 +9216,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9216,7 +9224,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -9224,7 +9232,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -9243,7 +9251,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -9251,7 +9259,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9259,7 +9267,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -9267,7 +9275,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -9277,7 +9285,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -9285,7 +9293,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9293,7 +9301,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -9301,7 +9309,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -9314,7 +9322,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -9322,7 +9330,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9330,7 +9338,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -9338,7 +9346,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -9348,7 +9356,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -9356,7 +9364,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9364,7 +9372,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -9372,7 +9380,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -9388,7 +9396,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -9396,7 +9404,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9404,7 +9412,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -9412,7 +9420,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -9422,7 +9430,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -9430,7 +9438,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9438,7 +9446,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -9446,7 +9454,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -9459,7 +9467,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -9467,7 +9475,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9475,7 +9483,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -9483,7 +9491,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -9493,7 +9501,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -9501,7 +9509,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9509,7 +9517,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -9517,7 +9525,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -9539,7 +9547,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -9547,7 +9555,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9555,7 +9563,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -9563,7 +9571,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -9573,7 +9581,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -9581,7 +9589,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9589,7 +9597,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -9597,7 +9605,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -9610,7 +9618,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -9618,7 +9626,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9626,7 +9634,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -9634,7 +9642,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -9644,7 +9652,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -9652,7 +9660,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9660,7 +9668,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -9668,7 +9676,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -9684,7 +9692,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -9692,7 +9700,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9700,7 +9708,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -9708,7 +9716,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -9718,7 +9726,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -9726,7 +9734,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9734,7 +9742,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -9742,7 +9750,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -9755,7 +9763,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -9763,7 +9771,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9771,7 +9779,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -9779,7 +9787,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -9789,7 +9797,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -9797,7 +9805,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9805,7 +9813,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -9813,7 +9821,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -9832,7 +9840,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -9840,7 +9848,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9848,7 +9856,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -9856,7 +9864,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -9866,7 +9874,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -9874,7 +9882,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9882,7 +9890,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -9890,7 +9898,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -9903,7 +9911,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -9911,7 +9919,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9919,7 +9927,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -9927,7 +9935,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -9937,7 +9945,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -9945,7 +9953,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9953,7 +9961,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -9961,7 +9969,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -9977,7 +9985,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -9985,7 +9993,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -9993,7 +10001,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -10001,7 +10009,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -10011,7 +10019,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -10019,7 +10027,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -10027,7 +10035,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -10035,7 +10043,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -10048,7 +10056,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -10056,7 +10064,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -10064,7 +10072,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -10072,7 +10080,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -10082,7 +10090,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -10090,7 +10098,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -10098,7 +10106,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -10106,7 +10114,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -10128,7 +10136,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -10136,7 +10144,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -10144,7 +10152,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -10152,7 +10160,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -10162,7 +10170,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -10170,7 +10178,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -10178,7 +10186,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -10186,7 +10194,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -10199,7 +10207,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -10207,7 +10215,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -10215,7 +10223,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -10223,7 +10231,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -10233,7 +10241,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -10241,7 +10249,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -10249,7 +10257,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -10257,7 +10265,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -10273,7 +10281,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -10281,7 +10289,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -10289,7 +10297,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -10297,7 +10305,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -10307,7 +10315,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -10315,7 +10323,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -10323,7 +10331,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -10331,7 +10339,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -10344,7 +10352,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -10352,7 +10360,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -10360,7 +10368,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -10368,7 +10376,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -10378,7 +10386,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf"); + assert(ex == ninf_sign + inf ); assert(ios.width() == 0); } ios.width(25); @@ -10386,7 +10394,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-inf*********************"); + assert(ex == ninf_sign + inf + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -10394,7 +10402,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-inf"); + assert(ex == inf_padding25 + ninf_sign + inf); assert(ios.width() == 0); } ios.width(25); @@ -10402,7 +10410,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************inf"); + assert(ex == ninf_sign + inf_padding25 + inf); assert(ios.width() == 0); } } @@ -10421,7 +10429,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -10429,7 +10437,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -10437,7 +10445,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -10445,7 +10453,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -10455,7 +10463,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -10463,7 +10471,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -10471,7 +10479,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -10479,7 +10487,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -10492,7 +10500,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -10500,7 +10508,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -10508,7 +10516,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -10516,7 +10524,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -10526,7 +10534,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -10534,7 +10542,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -10542,7 +10550,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -10550,7 +10558,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -10566,7 +10574,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -10574,7 +10582,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -10582,7 +10590,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -10590,7 +10598,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -10600,7 +10608,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -10608,7 +10616,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -10616,7 +10624,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -10624,7 +10632,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -10637,7 +10645,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -10645,7 +10653,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -10653,7 +10661,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -10661,7 +10669,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -10671,7 +10679,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF"); + assert(ex == ninf_sign + INF ); assert(ios.width() == 0); } ios.width(25); @@ -10679,7 +10687,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-INF*********************"); + assert(ex == ninf_sign + INF + inf_padding25); assert(ios.width() == 0); } ios.width(25); @@ -10687,7 +10695,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "*********************-INF"); + assert(ex == inf_padding25 + ninf_sign + INF); assert(ios.width() == 0); } ios.width(25); @@ -10695,7 +10703,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "-*********************INF"); + assert(ex == ninf_sign + inf_padding25 + INF); assert(ios.width() == 0); } } @@ -10717,12 +10725,23 @@ std::locale lc = std::locale::classic(); std::locale lg(lc, new my_numpunct); const my_facet f(1); +#if defined(_AIX) + std::string nan= "NaNQ"; + std::string NaN = std::string("NaNQ"); + std::string nan_padding25 = "*********************"; + std::string pnan_sign = "+"; + std::string pnan_padding25 = "********************"; +#else + std::string nan= "nan"; + std::string NaN = std::string("NAN"); + std::string nan_padding25 = "**********************"; #if defined(TEST_HAS_GLIBC) || defined(_WIN32) std::string pnan_sign = "+"; std::string pnan_padding25 = "*********************"; #else std::string pnan_sign = ""; std::string pnan_padding25 = "**********************"; +#endif #endif { long double v = std::nan(""); @@ -10743,7 +10762,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "nan"); + assert(ex == nan); assert(ios.width() == 0); } ios.width(25); @@ -10751,7 +10770,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "nan**********************"); + assert(ex == nan + nan_padding25 ); assert(ios.width() == 0); } ios.width(25); @@ -10759,7 +10778,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "**********************nan"); + assert(ex == nan_padding25 + nan ); assert(ios.width() == 0); } ios.width(25); @@ -10767,7 +10786,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "**********************nan"); + assert(ex == nan_padding25 + nan ); assert(ios.width() == 0); } } @@ -10777,7 +10796,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "nan"); + assert(ex == nan); assert(ios.width() == 0); } ios.width(25); @@ -10785,7 +10804,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "nan**********************"); + assert(ex == nan + nan_padding25 ); assert(ios.width() == 0); } ios.width(25); @@ -10793,7 +10812,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "**********************nan"); + assert(ex == nan_padding25 + nan ); assert(ios.width() == 0); } ios.width(25); @@ -10801,7 +10820,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "**********************nan"); + assert(ex == nan_padding25 + nan ); assert(ios.width() == 0); } } @@ -10814,7 +10833,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "nan"); + assert(ex == nan); assert(ios.width() == 0); } ios.width(25); @@ -10822,7 +10841,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "nan**********************"); + assert(ex == nan + nan_padding25 ); assert(ios.width() == 0); } ios.width(25); @@ -10830,7 +10849,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "**********************nan"); + assert(ex == nan_padding25 + nan ); assert(ios.width() == 0); } ios.width(25); @@ -10838,7 +10857,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "**********************nan"); + assert(ex == nan_padding25 + nan ); assert(ios.width() == 0); } } @@ -10848,7 +10867,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "nan"); + assert(ex == nan); assert(ios.width() == 0); } ios.width(25); @@ -10856,7 +10875,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "nan**********************"); + assert(ex == nan + nan_padding25 ); assert(ios.width() == 0); } ios.width(25); @@ -10864,7 +10883,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "**********************nan"); + assert(ex == nan_padding25 + nan ); assert(ios.width() == 0); } ios.width(25); @@ -10872,7 +10891,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "**********************nan"); + assert(ex == nan_padding25 + nan ); assert(ios.width() == 0); } } @@ -10888,7 +10907,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + "nan"); + assert(ex == pnan_sign + nan); assert(ios.width() == 0); } ios.width(25); @@ -10896,7 +10915,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + "nan" + pnan_padding25); + assert(ex == pnan_sign + nan + pnan_padding25); assert(ios.width() == 0); } ios.width(25); @@ -10904,7 +10923,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_padding25 + pnan_sign + "nan"); + assert(ex == pnan_padding25 + pnan_sign + nan); assert(ios.width() == 0); } ios.width(25); @@ -10912,7 +10931,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + pnan_padding25 + "nan"); + assert(ex == pnan_sign + pnan_padding25 + nan); assert(ios.width() == 0); } } @@ -10922,7 +10941,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + "nan"); + assert(ex == pnan_sign + nan); assert(ios.width() == 0); } ios.width(25); @@ -10930,7 +10949,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + "nan" + pnan_padding25); + assert(ex == pnan_sign + nan + pnan_padding25); assert(ios.width() == 0); } ios.width(25); @@ -10938,7 +10957,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_padding25 + pnan_sign + "nan"); + assert(ex == pnan_padding25 + pnan_sign + nan); assert(ios.width() == 0); } ios.width(25); @@ -10946,7 +10965,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + pnan_padding25 + "nan"); + assert(ex == pnan_sign + pnan_padding25 + nan); assert(ios.width() == 0); } } @@ -10959,7 +10978,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + "nan"); + assert(ex == pnan_sign + nan); assert(ios.width() == 0); } ios.width(25); @@ -10967,7 +10986,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + "nan" + pnan_padding25); + assert(ex == pnan_sign + nan + pnan_padding25); assert(ios.width() == 0); } ios.width(25); @@ -10975,7 +10994,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_padding25 + pnan_sign + "nan"); + assert(ex == pnan_padding25 + pnan_sign + nan); assert(ios.width() == 0); } ios.width(25); @@ -10983,7 +11002,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + pnan_padding25 + "nan"); + assert(ex == pnan_sign + pnan_padding25 + nan); assert(ios.width() == 0); } } @@ -10993,7 +11012,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + "nan"); + assert(ex == pnan_sign + nan); assert(ios.width() == 0); } ios.width(25); @@ -11001,7 +11020,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + "nan" + pnan_padding25); + assert(ex == pnan_sign + nan + pnan_padding25); assert(ios.width() == 0); } ios.width(25); @@ -11009,7 +11028,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_padding25 + pnan_sign + "nan"); + assert(ex == pnan_padding25 + pnan_sign + nan); assert(ios.width() == 0); } ios.width(25); @@ -11017,7 +11036,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + pnan_padding25 + "nan"); + assert(ex == pnan_sign + pnan_padding25 + nan); assert(ios.width() == 0); } } @@ -11036,7 +11055,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "NAN"); + assert(ex == NaN); assert(ios.width() == 0); } ios.width(25); @@ -11044,7 +11063,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "NAN**********************"); + assert(ex == NaN + nan_padding25); assert(ios.width() == 0); } ios.width(25); @@ -11052,7 +11071,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "**********************NAN"); + assert(ex == nan_padding25 + NaN ); assert(ios.width() == 0); } ios.width(25); @@ -11060,7 +11079,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "**********************NAN"); + assert(ex == nan_padding25 + NaN ); assert(ios.width() == 0); } } @@ -11070,7 +11089,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "NAN"); + assert(ex == NaN); assert(ios.width() == 0); } ios.width(25); @@ -11078,7 +11097,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "NAN**********************"); + assert(ex == NaN + nan_padding25); assert(ios.width() == 0); } ios.width(25); @@ -11086,7 +11105,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "**********************NAN"); + assert(ex == nan_padding25 + NaN ); assert(ios.width() == 0); } ios.width(25); @@ -11094,7 +11113,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "**********************NAN"); + assert(ex == nan_padding25 + NaN ); assert(ios.width() == 0); } } @@ -11107,7 +11126,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "NAN"); + assert(ex == NaN); assert(ios.width() == 0); } ios.width(25); @@ -11115,7 +11134,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "NAN**********************"); + assert(ex == NaN + nan_padding25); assert(ios.width() == 0); } ios.width(25); @@ -11123,7 +11142,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "**********************NAN"); + assert(ex == nan_padding25 + NaN ); assert(ios.width() == 0); } ios.width(25); @@ -11131,7 +11150,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "**********************NAN"); + assert(ex == nan_padding25 + NaN ); assert(ios.width() == 0); } } @@ -11141,7 +11160,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "NAN"); + assert(ex == NaN); assert(ios.width() == 0); } ios.width(25); @@ -11149,7 +11168,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "NAN**********************"); + assert(ex == NaN + nan_padding25); assert(ios.width() == 0); } ios.width(25); @@ -11157,7 +11176,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "**********************NAN"); + assert(ex == nan_padding25 + NaN ); assert(ios.width() == 0); } ios.width(25); @@ -11165,7 +11184,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == "**********************NAN"); + assert(ex == nan_padding25 + NaN ); assert(ios.width() == 0); } } @@ -11181,7 +11200,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + "NAN"); + assert(ex == pnan_sign + NaN); assert(ios.width() == 0); } ios.width(25); @@ -11189,7 +11208,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + "NAN" + pnan_padding25); + assert(ex == pnan_sign + NaN + pnan_padding25); assert(ios.width() == 0); } ios.width(25); @@ -11197,7 +11216,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_padding25 + pnan_sign + "NAN"); + assert(ex == pnan_padding25 + pnan_sign + NaN); assert(ios.width() == 0); } ios.width(25); @@ -11205,7 +11224,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + pnan_padding25 + "NAN"); + assert(ex == pnan_sign + pnan_padding25 + NaN); assert(ios.width() == 0); } } @@ -11215,7 +11234,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + "NAN"); + assert(ex == pnan_sign + NaN); assert(ios.width() == 0); } ios.width(25); @@ -11223,7 +11242,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + "NAN" + pnan_padding25); + assert(ex == pnan_sign + NaN + pnan_padding25); assert(ios.width() == 0); } ios.width(25); @@ -11231,7 +11250,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_padding25 + pnan_sign + "NAN"); + assert(ex == pnan_padding25 + pnan_sign + NaN); assert(ios.width() == 0); } ios.width(25); @@ -11239,7 +11258,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + pnan_padding25 + "NAN"); + assert(ex == pnan_sign + pnan_padding25 + NaN); assert(ios.width() == 0); } } @@ -11252,7 +11271,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + "NAN"); + assert(ex == pnan_sign + NaN); assert(ios.width() == 0); } ios.width(25); @@ -11260,7 +11279,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + "NAN" + pnan_padding25); + assert(ex == pnan_sign + NaN + pnan_padding25); assert(ios.width() == 0); } ios.width(25); @@ -11268,7 +11287,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_padding25 + pnan_sign + "NAN"); + assert(ex == pnan_padding25 + pnan_sign + NaN); assert(ios.width() == 0); } ios.width(25); @@ -11276,7 +11295,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + pnan_padding25 + "NAN"); + assert(ex == pnan_sign + pnan_padding25 + NaN); assert(ios.width() == 0); } } @@ -11286,7 +11305,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + "NAN"); + assert(ex == pnan_sign + NaN); assert(ios.width() == 0); } ios.width(25); @@ -11294,7 +11313,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + "NAN" + pnan_padding25); + assert(ex == pnan_sign + NaN + pnan_padding25); assert(ios.width() == 0); } ios.width(25); @@ -11302,7 +11321,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_padding25 + pnan_sign + "NAN"); + assert(ex == pnan_padding25 + pnan_sign + NaN); assert(ios.width() == 0); } ios.width(25); @@ -11310,7 +11329,7 @@ { cpp17_output_iterator iter = f.put(cpp17_output_iterator(str), ios, '*', v); std::string ex(str, iter.base()); - assert(ex == pnan_sign + pnan_padding25 + "NAN"); + assert(ex == pnan_sign + pnan_padding25 + NaN); assert(ios.width() == 0); } }