diff options
author | Steve Huston <shuston@riverace.com> | 2003-02-07 00:51:51 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2003-02-07 00:51:51 +0000 |
commit | 497e425414d29e3129c4f62484f0e251b3f4e86e (patch) | |
tree | 0f2a93009a1ca374d11ffdbb271e93da0071a88d /tests | |
parent | 2776cf328f852204d27e0c5c43a8b4f89330b653 (diff) | |
download | ATCD-497e425414d29e3129c4f62484f0e251b3f4e86e.tar.gz |
ChangeLogTag:Thu Feb 6 19:30:18 2003 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/SString_Test.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/SString_Test.cpp b/tests/SString_Test.cpp index 7dfccc90a90..737659de377 100644 --- a/tests/SString_Test.cpp +++ b/tests/SString_Test.cpp @@ -167,6 +167,7 @@ ACE_TMAIN (int, ACE_TCHAR *[]) ACE_NS_WString s3 ("ll"); ACE_NS_WString s4 ("ello"); ACE_NS_WString s5 = s1 + " " + s2; + ACE_NS_WString s6 = ("hella"); // Same length as s1, off by one char. ACE_WCHAR_T single_character = 'z'; ACE_NS_WString single_character_string (single_character); @@ -177,6 +178,7 @@ ACE_TMAIN (int, ACE_TCHAR *[]) // Not equal comparisons. Error if they are equal if (s1 == s2){ACE_ERROR((LM_ERROR,"Set #3: \n"));} if (s1 == s5){ACE_ERROR((LM_ERROR,"Set #3: \n"));} + if (s1 == s6){ACE_ERROR((LM_ERROR,"Set #3: off-by-one failed\n"));} // Equal comparisons. Error if they are not equal if (s1 != s1){ACE_ERROR((LM_ERROR,"Set #3: \n"));} @@ -207,13 +209,13 @@ ACE_TMAIN (int, ACE_TCHAR *[]) if (s1.rfind ('l', 3) != 2){ACE_ERROR((LM_ERROR,"Set #3: \n"));} // Assignment. Error if they are not equal - ACE_NS_WString s6; - s6 = s0; - if (s6 != s0){ACE_ERROR((LM_ERROR,"Set #3: \n"));} - s6 = s4; - if (s4 != s6){ACE_ERROR((LM_ERROR,"Set #3: \n"));} - s6 = s5; - if (s6 != s5){ACE_ERROR((LM_ERROR,"Set #3: \n"));} + ACE_NS_WString s7; + s7 = s0; + if (s7 != s0){ACE_ERROR((LM_ERROR,"Set #3: \n"));} + s7 = s4; + if (s4 != s7){ACE_ERROR((LM_ERROR,"Set #3: \n"));} + s7 = s5; + if (s7 != s5){ACE_ERROR((LM_ERROR,"Set #3: \n"));} // Clear. Error if they are not equal s0.clear(); |