+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.
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;
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()
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;
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