+2002-06-05 Paolo Carlini <pcarlini@unitus.it>
+
+ * testsuite/22_locale/money_get_members_char.cc
+ (test02): Add decimal point to long double constants.
+ * testsuite/22_locale/money_get_members_wchar_t.cc
+ (test02): Likewise.
+ * testsuite/22_locale/money_put_members_char.cc
+ (test02, test03, test06): Likewise.
+ * testsuite/22_locale/money_put_members_wchar_t.cc:
+ (test02, test03, test06): Likewise.
+ * testsuite/22_locale/num_get_members_char.cc:
+ (test02, test01): Likewise; suffix long long constants with LL.
+ * testsuite/22_locale/num_get_members_wchar_t.cc:
+ (test02, test01): Likewise.
+ * testsuite/22_locale/num_put_members_char.cc:
+ (test02, test01): Likewise.
+ * testsuite/22_locale/num_put_members_wchar_t.cc:
+ (test02, test01): Likewise.
+
2002-06-04 Paolo Carlini <pcarlini@unitus.it>
Gaby Dos Reis <gdr@codesourcery.com>
const string empty;
// total EPA budget FY 2002
- const long double digits1 = 720000000000;
+ const long double digits1 = 720000000000.0;
// est. cost, national missile "defense", expressed as a loss in USD 2001
- const long double digits2 = -10000000000000;
+ const long double digits2 = -10000000000000.0;
// input less than frac_digits
- const long double digits4 = -1;
+ const long double digits4 = -1.0;
iterator_type end;
istringstream iss;
const wstring empty;
// total EPA budget FY 2002
- const long double digits1 = 720000000000;
+ const long double digits1 = 720000000000.0;
// est. cost, national missile "defense", expressed as a loss in USD 2001
- const long double digits2 = -10000000000000;
+ const long double digits2 = -10000000000000.0;
// input less than frac_digits
- const long double digits4 = -1;
+ const long double digits4 = -1.0;
iterator_type end;
wistringstream iss;
const string empty;
// total EPA budget FY 2002
- const long double digits1 = 720000000000;
+ const long double digits1 = 720000000000.0;
// est. cost, national missile "defense", expressed as a loss in USD 2001
- const long double digits2 = -10000000000000;
+ const long double digits2 = -10000000000000.0;
// input less than frac_digits
- const long double digits4 = -1;
+ const long double digits4 = -1.0;
ostringstream oss;
const locale loc_c = locale::classic();
// woman, art, thief (stole the blues)
const string str("1943 Janis Joplin");
- const long double ld = 1943;
+ const long double ld = 1943.0;
const string x(str.size(), 'x'); // have to have allocated string!
string res;
bool intl = false;
- long double val = 1e50L;
+ long double val = 1.0e50L;
const money_put<char,OutIt>& mp =
use_facet<money_put<char, OutIt> >(loc);
const wstring empty;
// total EPA budget FY 2002
- const long double digits1 = 720000000000;
+ const long double digits1 = 720000000000.0;
// est. cost, national missile "defense", expressed as a loss in USD 2001
- const long double digits2 = -10000000000000;
+ const long double digits2 = -10000000000000.0;
// input less than frac_digits
- const long double digits4 = -1;
+ const long double digits4 = -1.0;
wostringstream oss;
const locale loc_c = locale::classic();
// woman, art, thief (stole the blues)
const wstring str(L"1943 Janis Joplin");
- const long double ld = 1943;
+ const long double ld = 1943.0;
const wstring x(str.size(), 'x'); // have to have allocated string!
wstring res;
bool intl = false;
- long double val = 1e50L;
+ long double val = 1.0e50L;
const money_put<wchar_t,OutIt>& mp =
use_facet<money_put<wchar_t, OutIt> >(loc);
#ifdef _GLIBCPP_USE_LONG_LONG
- long long ll1 = 9223372036854775807;
- long long ll2 = -9223372036854775807;
+ long long ll1 = 9223372036854775807LL;
+ long long ll2 = -9223372036854775807LL;
long long ll;
iss.str("9.223.372.036.854.775.807");
VERIFY( rem1 == " Elizabeth Durack" );
// 02 get(long double)
- long double ld = 0;
+ long double ld = 0.0;
err = goodbit;
iter_type end2 = ng.get(str.begin(), str.end(), iss, err, ld);
string rem2(end2, str.end());
#ifdef _GLIBCPP_USE_LONG_LONG
- long long ll1 = 9223372036854775807;
- long long ll2 = -9223372036854775807;
+ long long ll1 = 9223372036854775807LL;
+ long long ll2 = -9223372036854775807LL;
long long ll;
iss.str(L"9.223.372.036.854.775.807");
VERIFY( rem1 == L" Elizabeth Durack" );
// 02 get(long double)
- long double ld = 0;
+ long double ld = 0.0;
err = goodbit;
iter_type end2 = ng.get(str.begin(), str.end(), iss, err, ld);
wstring rem2(end2, str.end());
VERIFY( result1.find('x') == 1 );
#ifdef _GLIBCPP_USE_LONG_LONG
- long long ll1 = 9223372036854775807;
- long long ll2 = -9223372036854775807;
+ long long ll1 = 9223372036854775807LL;
+ long long ll2 = -9223372036854775807LL;
oss.str(empty);
oss.clear();
VERIFY( sanity1 == "1798" );
// 02 put(long double)
- const long double ld = 1798;
+ const long double ld = 1798.0;
res = x;
iter_type ret2 = tp.put(res.begin(), oss, ' ', ld);
string sanity2(res.begin(), ret2);
VERIFY( result1.find(L'x') == 1 );
#ifdef _GLIBCPP_USE_LONG_LONG
- long long ll1 = 9223372036854775807;
- long long ll2 = -9223372036854775807;
+ long long ll1 = 9223372036854775807LL;
+ long long ll2 = -9223372036854775807LL;
oss.str(empty);
oss.clear();
VERIFY( sanity1 == L"1798" );
// 02 put(long double)
- const long double ld = 1798;
+ const long double ld = 1798.0;
res = x;
iter_type ret2 = tp.put(res.begin(), oss, L' ', ld);
wstring sanity2(res.begin(), ret2);