2002-06-04 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.

From-SVN: r54243
This commit is contained in:
Paolo Carlini 2002-06-04 15:38:07 +02:00 committed by Paolo Carlini
parent 82eda77ed5
commit 23992195af
9 changed files with 47 additions and 28 deletions

View File

@ -1,3 +1,22 @@
2002-06-04 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-03 Marc Espie <espie@openbsd.org>
* config/cpu/m68k/bits/atomicity.h(__exchange_and_add): Fix inline

View File

@ -236,13 +236,13 @@ void test02()
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;

View File

@ -238,13 +238,13 @@ void test02()
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;

View File

@ -195,13 +195,13 @@ void test02()
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;
@ -256,7 +256,7 @@ void test03()
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;
@ -357,7 +357,7 @@ void test06()
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);

View File

@ -195,13 +195,13 @@ void test02()
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;
@ -256,7 +256,7 @@ void test03()
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;
@ -357,7 +357,7 @@ void test06()
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);

View File

@ -222,8 +222,8 @@ void test01()
#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");
@ -274,7 +274,7 @@ void test02()
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());

View File

@ -223,8 +223,8 @@ void test01()
#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");
@ -275,7 +275,7 @@ void test02()
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());

View File

@ -208,8 +208,8 @@ void test01()
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();
@ -257,7 +257,7 @@ void test02()
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);

View File

@ -209,8 +209,8 @@ void test01()
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();
@ -257,7 +257,7 @@ void test02()
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);