num_put_members_wchar_t.cc (test02): Same.

2002-01-15  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/22_locale/num_put_members_wchar_t.cc (test02): Same.
	* testsuite/22_locale/num_put_members_char.cc (test01): Tweak.

From-SVN: r48901
This commit is contained in:
Benjamin Kosnik 2002-01-16 06:06:59 +00:00 committed by Benjamin Kosnik
parent 7adf768017
commit c22e177db7
3 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2002-01-15 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/22_locale/num_put_members_wchar_t.cc (test02): Same.
* testsuite/22_locale/num_put_members_char.cc (test01): Tweak.
2002-01-15 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.tcc (num_put::do_put(bool): Fix.

View File

@ -205,7 +205,7 @@ void test01()
numpunct_de.decimal_point(),
result1.size()) );
// Should contain an 'x'.
VERIFY( !char_traits<char>::find(result1.c_str(), 'x', result1.size()) );
VERIFY( result1.find('x') == 1 );
#ifdef _GLIBCPP_USE_LONG_LONG
long long ll1 = 9223372036854775807;
@ -287,7 +287,8 @@ void test02()
oss.setf(ios_base::fixed, ios_base::floatfield);
iter_type ret5 = tp.put(res.begin(), oss, ' ', cv);
string sanity5(res.begin(), ret5);
VERIFY( !char_traits<char>::find(sanity5.c_str(), 'x', sanity5.size()) );
VERIFY( sanity5.size() );
VERIFY( sanity5[1] == 'x' );
}
int main()

View File

@ -206,7 +206,7 @@ void test01()
numpunct_de.decimal_point(),
result1.size()) );
// Should contain an 'x'.
VERIFY( !char_traits<wchar_t>::find(result1.c_str(), L'x', result1.size()) );
VERIFY( result1.find(L'x') == 1 );
#ifdef _GLIBCPP_USE_LONG_LONG
long long ll1 = 9223372036854775807;
@ -287,7 +287,8 @@ void test02()
oss.setf(ios_base::fixed, ios_base::floatfield);
iter_type ret5 = tp.put(res.begin(), oss, L' ', cv);
wstring sanity5(res.begin(), ret5);
VERIFY( !char_traits<wchar_t>::find(sanity5.c_str(), L'x', sanity5.size()) );
VERIFY( sanity5.size() );
VERIFY( sanity5[1] == L'x' );
}
#endif