Commit 9a92330f by Benjamin Kosnik Committed by Benjamin Kosnik

numpunct_members_char.cc (test01): Remove redundant sanity checks.


2001-09-20  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/22_locale/numpunct_members_char.cc (test01): Remove
	redundant sanity checks.
	* testsuite/22_locale/money_put_members_wchar_t.cc (test01): Same.
	(test02): Same.
	* testsuite/22_locale/money_put_members_char.cc (test01): Same.
	(test02): Same.
	* testsuite/22_locale/moneypunct_members_wchar_t.cc (test01): Same.
	* testsuite/22_locale/moneypunct_members_char.cc (test01): Same.
	* testsuite/22_locale/money_get_members_wchar_t.cc (test01): Same.
	(test02): Same.
	* testsuite/22_locale/money_get_members_char.cc (test01): Same.
	(test02): Same.

From-SVN: r45703
parent e08138aa
2001-09-20 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/22_locale/numpunct_members_char.cc (test01): Remove
redundant sanity checks.
* testsuite/22_locale/money_put_members_wchar_t.cc (test01): Same.
(test02): Same.
* testsuite/22_locale/money_put_members_char.cc (test01): Same.
(test02): Same.
* testsuite/22_locale/moneypunct_members_wchar_t.cc (test01): Same.
* testsuite/22_locale/moneypunct_members_char.cc (test01): Same.
* testsuite/22_locale/money_get_members_wchar_t.cc (test01): Same.
(test02): Same.
* testsuite/22_locale/money_get_members_char.cc (test01): Same.
(test02): Same.
2001-09-19 Benjamin Kosnik <bkoz@redhat.com> 2001-09-19 Benjamin Kosnik <bkoz@redhat.com>
Implement std::time_put. Implement std::time_put.
......
...@@ -36,24 +36,13 @@ void test01() ...@@ -36,24 +36,13 @@ void test01()
typedef istreambuf_iterator<char> iterator_type; typedef istreambuf_iterator<char> iterator_type;
bool test = true; bool test = true;
string str;
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
str = loc_c.name();
locale loc_hk("en_HK"); locale loc_hk("en_HK");
str = loc_hk.name();
VERIFY( loc_c != loc_hk );
locale loc_fr("fr_FR@euro"); locale loc_fr("fr_FR@euro");
str = loc_fr.name();
VERIFY( loc_c != loc_fr );
locale loc_de("de_DE"); locale loc_de("de_DE");
str = loc_de.name();
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
VERIFY( loc_hk != loc_fr ); VERIFY( loc_hk != loc_fr );
VERIFY( loc_hk != loc_de ); VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr ); VERIFY( loc_de != loc_fr );
...@@ -192,24 +181,13 @@ void test02() ...@@ -192,24 +181,13 @@ void test02()
typedef istreambuf_iterator<char> iterator_type; typedef istreambuf_iterator<char> iterator_type;
bool test = true; bool test = true;
string str;
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
str = loc_c.name();
locale loc_hk("en_HK"); locale loc_hk("en_HK");
str = loc_hk.name();
VERIFY( loc_c != loc_hk );
locale loc_fr("fr_FR@euro"); locale loc_fr("fr_FR@euro");
str = loc_fr.name();
VERIFY( loc_c != loc_fr );
locale loc_de("de_DE"); locale loc_de("de_DE");
str = loc_de.name();
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
VERIFY( loc_hk != loc_fr ); VERIFY( loc_hk != loc_fr );
VERIFY( loc_hk != loc_de ); VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr ); VERIFY( loc_de != loc_fr );
......
...@@ -37,24 +37,13 @@ void test01() ...@@ -37,24 +37,13 @@ void test01()
typedef istreambuf_iterator<wchar_t> iterator_type; typedef istreambuf_iterator<wchar_t> iterator_type;
bool test = true; bool test = true;
string str;
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
str = loc_c.name();
locale loc_hk("en_HK"); locale loc_hk("en_HK");
str = loc_hk.name();
VERIFY( loc_c != loc_hk );
locale loc_fr("fr_FR@euro"); locale loc_fr("fr_FR@euro");
str = loc_fr.name();
VERIFY( loc_c != loc_fr );
locale loc_de("de_DE"); locale loc_de("de_DE");
str = loc_de.name();
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
VERIFY( loc_hk != loc_fr ); VERIFY( loc_hk != loc_fr );
VERIFY( loc_hk != loc_de ); VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr ); VERIFY( loc_de != loc_fr );
...@@ -194,24 +183,13 @@ void test02() ...@@ -194,24 +183,13 @@ void test02()
typedef istreambuf_iterator<wchar_t> iterator_type; typedef istreambuf_iterator<wchar_t> iterator_type;
bool test = true; bool test = true;
string str;
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
str = loc_c.name();
locale loc_hk("en_HK"); locale loc_hk("en_HK");
str = loc_hk.name();
VERIFY( loc_c != loc_hk );
locale loc_fr("fr_FR@euro"); locale loc_fr("fr_FR@euro");
str = loc_fr.name();
VERIFY( loc_c != loc_fr );
locale loc_de("de_DE"); locale loc_de("de_DE");
str = loc_de.name();
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
VERIFY( loc_hk != loc_fr ); VERIFY( loc_hk != loc_fr );
VERIFY( loc_hk != loc_de ); VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr ); VERIFY( loc_de != loc_fr );
......
...@@ -36,24 +36,13 @@ void test01() ...@@ -36,24 +36,13 @@ void test01()
typedef ostreambuf_iterator<char> iterator_type; typedef ostreambuf_iterator<char> iterator_type;
bool test = true; bool test = true;
string str;
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
str = loc_c.name();
locale loc_hk("en_HK"); locale loc_hk("en_HK");
str = loc_hk.name();
VERIFY( loc_c != loc_hk );
locale loc_fr("fr_FR@euro"); locale loc_fr("fr_FR@euro");
str = loc_fr.name();
VERIFY( loc_c != loc_fr );
locale loc_de("de_DE"); locale loc_de("de_DE");
str = loc_de.name();
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
VERIFY( loc_hk != loc_fr ); VERIFY( loc_hk != loc_fr );
VERIFY( loc_hk != loc_de ); VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr ); VERIFY( loc_de != loc_fr );
...@@ -181,24 +170,13 @@ void test02() ...@@ -181,24 +170,13 @@ void test02()
typedef ostreambuf_iterator<char> iterator_type; typedef ostreambuf_iterator<char> iterator_type;
bool test = true; bool test = true;
string str;
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
str = loc_c.name();
locale loc_hk("en_HK"); locale loc_hk("en_HK");
str = loc_hk.name();
VERIFY( loc_c != loc_hk );
locale loc_fr("fr_FR@euro"); locale loc_fr("fr_FR@euro");
str = loc_fr.name();
VERIFY( loc_c != loc_fr );
locale loc_de("de_DE"); locale loc_de("de_DE");
str = loc_de.name();
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
VERIFY( loc_hk != loc_fr ); VERIFY( loc_hk != loc_fr );
VERIFY( loc_hk != loc_de ); VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr ); VERIFY( loc_de != loc_fr );
......
...@@ -37,24 +37,13 @@ void test01() ...@@ -37,24 +37,13 @@ void test01()
typedef ostreambuf_iterator<wchar_t> iterator_type; typedef ostreambuf_iterator<wchar_t> iterator_type;
bool test = true; bool test = true;
string str;
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
str = loc_c.name();
locale loc_hk("en_HK"); locale loc_hk("en_HK");
str = loc_hk.name();
VERIFY( loc_c != loc_hk );
locale loc_fr("fr_FR@euro"); locale loc_fr("fr_FR@euro");
str = loc_fr.name();
VERIFY( loc_c != loc_fr );
locale loc_de("de_DE"); locale loc_de("de_DE");
str = loc_de.name();
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
VERIFY( loc_hk != loc_fr ); VERIFY( loc_hk != loc_fr );
VERIFY( loc_hk != loc_de ); VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr ); VERIFY( loc_de != loc_fr );
...@@ -181,24 +170,13 @@ void test02() ...@@ -181,24 +170,13 @@ void test02()
typedef ostreambuf_iterator<wchar_t> iterator_type; typedef ostreambuf_iterator<wchar_t> iterator_type;
bool test = true; bool test = true;
string str;
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
str = loc_c.name();
locale loc_hk("en_HK"); locale loc_hk("en_HK");
str = loc_hk.name();
VERIFY( loc_c != loc_hk );
locale loc_fr("fr_FR@euro"); locale loc_fr("fr_FR@euro");
str = loc_fr.name();
VERIFY( loc_c != loc_fr );
locale loc_de("de_DE"); locale loc_de("de_DE");
str = loc_de.name();
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
VERIFY( loc_hk != loc_fr ); VERIFY( loc_hk != loc_fr );
VERIFY( loc_hk != loc_de ); VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr ); VERIFY( loc_de != loc_fr );
......
...@@ -33,24 +33,13 @@ void test01() ...@@ -33,24 +33,13 @@ void test01()
typedef money_base::pattern pattern; typedef money_base::pattern pattern;
bool test = true; bool test = true;
string str;
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
str = loc_c.name();
locale loc_us("en_US"); locale loc_us("en_US");
str = loc_us.name();
VERIFY( loc_c != loc_us );
locale loc_fr("fr_FR"); locale loc_fr("fr_FR");
str = loc_fr.name();
VERIFY( loc_c != loc_fr );
locale loc_de("de_DE"); locale loc_de("de_DE");
str = loc_de.name();
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
VERIFY( loc_us != loc_fr ); VERIFY( loc_us != loc_fr );
VERIFY( loc_us != loc_de ); VERIFY( loc_us != loc_de );
VERIFY( loc_de != loc_fr ); VERIFY( loc_de != loc_fr );
......
...@@ -34,24 +34,13 @@ void test01() ...@@ -34,24 +34,13 @@ void test01()
typedef money_base::pattern pattern; typedef money_base::pattern pattern;
bool test = true; bool test = true;
string str;
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
str = loc_c.name();
locale loc_us("en_US"); locale loc_us("en_US");
str = loc_us.name();
VERIFY( loc_c != loc_us );
locale loc_fr("fr_FR"); locale loc_fr("fr_FR");
str = loc_fr.name();
VERIFY( loc_c != loc_fr );
locale loc_de("de_DE"); locale loc_de("de_DE");
str = loc_de.name();
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
VERIFY( loc_us != loc_fr ); VERIFY( loc_us != loc_fr );
VERIFY( loc_us != loc_de ); VERIFY( loc_us != loc_de );
VERIFY( loc_de != loc_fr ); VERIFY( loc_de != loc_fr );
......
...@@ -31,24 +31,13 @@ void test01() ...@@ -31,24 +31,13 @@ void test01()
using namespace std; using namespace std;
bool test = true; bool test = true;
string str;
// basic construction // basic construction
locale loc_c = locale::classic(); locale loc_c = locale::classic();
str = loc_c.name();
locale loc_us("en_US"); locale loc_us("en_US");
str = loc_us.name();
VERIFY( loc_c != loc_us );
locale loc_fr("fr_FR"); locale loc_fr("fr_FR");
str = loc_fr.name();
VERIFY( loc_c != loc_fr );
locale loc_de("de_DE"); locale loc_de("de_DE");
str = loc_de.name();
VERIFY( loc_c != loc_de ); VERIFY( loc_c != loc_de );
VERIFY( loc_us != loc_fr ); VERIFY( loc_us != loc_fr );
VERIFY( loc_us != loc_de ); VERIFY( loc_us != loc_de );
VERIFY( loc_de != loc_fr ); VERIFY( loc_de != loc_fr );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment