diff options
author | bala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-03-11 17:51:47 +0000 |
---|---|---|
committer | bala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-03-11 17:51:47 +0000 |
commit | 7610e205d2258321ef0a78d5866369afd86a5d6a (patch) | |
tree | 46717fff877309ebca77fe2c06059576126cd675 /tests | |
parent | 1db06a662ddec3fb79f069dcdc08591ceeb9d128 (diff) | |
download | ATCD-7610e205d2258321ef0a78d5866369afd86a5d6a.tar.gz |
ChangeLogTag:Thu Mar 11 11:49:28 2004 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/SString_Test.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
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")); @@ -268,6 +268,23 @@ run_main (int, ACE_TCHAR *[]) 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; } |