-// Syntax check for the correct namespace qualifier for the standard string class.
-void
-StringTest::TestStdNamespaceQualifier() {
-#if U_HAVE_STD_STRING
- U_STD_NSQ string s="abc xyz";
- U_STD_NSQ string t="abc";
- t.append(" ");
- t.append("xyz");
- if(s!=t) {
- errln("standard string concatenation error: %s != %s", s.c_str(), t.c_str());
- }
-#endif
-}
-
-void
-StringTest::TestUsingStdNamespace() {
-#if U_HAVE_STD_STRING
- // Now test that "using namespace std;" is defined correctly.
- U_STD_NS_USE
-
- string s="abc xyz";
- string t="abc";
- t.append(" ");
- t.append("xyz");
- if(s!=t) {
- errln("standard string concatenation error: %s != %s", s.c_str(), t.c_str());
- }
-#endif
-}
-