From 7610e205d2258321ef0a78d5866369afd86a5d6a Mon Sep 17 00:00:00 2001 From: bala Date: Thu, 11 Mar 2004 17:51:47 +0000 Subject: ChangeLogTag:Thu Mar 11 11:49:28 2004 Balachandran Natarajan --- tests/SString_Test.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/SString_Test.cpp b/tests/SString_Test.cpp index 52b26c155e3..e9a0ecb20d8 100644 --- a/tests/SString_Test.cpp +++ b/tests/SString_Test.cpp @@ -25,7 +25,7 @@ ACE_RCSID(tests, SString_Test, "$Id$") - int +int run_main (int, ACE_TCHAR *[]) { ACE_START_TEST (ACE_TEXT ("SString_Test")); @@ -267,6 +267,23 @@ run_main (int, ACE_TCHAR *[]) if(!(s11 > s12)){ACE_ERROR((LM_ERROR,"Set #4: \n"));} if(s11 < s12){ACE_ERROR((LM_ERROR,"Set #4: \n"));} + } + + { + // Set 1 for ACE_SString, which is not tested + ACE_SString sstr; + + char *str = "What_a_day_it_has_been"; + + sstr.rep (str); + + ACE_SString tmp = + sstr.substring (2, 300); + + if (tmp.length () == 300) + ACE_ERROR ((LM_ERROR, + "SString substring \n")); + } ACE_END_TEST; return 0; -- cgit v1.2.1