summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-21 23:57:54 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-21 23:57:54 +0000
commit91dc4267585d8aba1939c724e4ace334c158bb7a (patch)
tree126c1b5deeb358e72a74d66605e9e607169acb81
parentf1235921cace6d66f9423931f72dd1cd42007134 (diff)
downloadATCD-91dc4267585d8aba1939c724e4ace334c158bb7a.tar.gz
(main): added ACE_ASSERT with s4 in it, because it was unused otherwise
-rw-r--r--tests/SString_Test.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/tests/SString_Test.cpp b/tests/SString_Test.cpp
index 1bac97aa2b7..dea5cbbfc9d 100644
--- a/tests/SString_Test.cpp
+++ b/tests/SString_Test.cpp
@@ -4,24 +4,24 @@
//
// = LIBRARY
// tests
-//
+//
// = FILENAME
// SString_Test.cpp
//
// = DESCRIPTION
// This is a simple test that illustrates the use of ACE_CString
// and ACE_WString. No command line arguments are needed to run
-// the test.
+// the test.
//
// = AUTHOR
// Prashant Jain
-//
+//
// ============================================================================
#include "test_config.h"
#include "ace/SString.h"
-int
+int
main (int, ASYS_TCHAR *[])
{
ACE_START_TEST (ASYS_TEXT ("SString_Test"));
@@ -30,11 +30,11 @@ main (int, ASYS_TCHAR *[])
ACE_CString s1 ("hello");
ACE_CString s2 ("world");
ACE_CString s3 ("el");
-
+
ACE_ASSERT (s1 != s2);
ACE_ASSERT (s1.strstr (s2) == -1);
ACE_ASSERT (s1.strstr (s3));
-
+
ACE_ASSERT (s1.find (s3) == 1);
ACE_ASSERT (s1.find (s3, 2) == ACE_CString::npos);
ACE_ASSERT (s1.find (s2) == ACE_CString::npos);
@@ -50,9 +50,10 @@ main (int, ASYS_TCHAR *[])
ACE_CString s4 = s1 + " " + s2;
ACE_ASSERT (s1 != s2);
+ ACE_ASSERT (s1 != s4);
ACE_ASSERT (s1.strstr (s2) == -1);
ACE_ASSERT (s1.strstr (s3));
-
+
ACE_ASSERT (s1.find (s3) == 1);
ACE_ASSERT (s1.find (s3, 2) == ACE_CString::npos);
ACE_ASSERT (s1.find (s2) == ACE_CString::npos);
@@ -65,11 +66,11 @@ main (int, ASYS_TCHAR *[])
ACE_WString s1 ("hello");
ACE_WString s2 ("world");
ACE_WString s3 ("el");
-
+
ACE_ASSERT (s1 != s2);
ACE_ASSERT (s1.strstr (s2) == -1);
ACE_ASSERT (s1.strstr (s3));
-
+
ACE_ASSERT (s1.find (s3) == 1);
ACE_ASSERT (s1.find (s3, 2) == ACE_WString::npos);
ACE_ASSERT (s1.find (s2) == ACE_WString::npos);