summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>2002-11-15 13:48:23 +0000
committerbala <balanatarajan@users.noreply.github.com>2002-11-15 13:48:23 +0000
commit128b841ede1bb3c587bdf799f89eb33135705f03 (patch)
treebbf2d00310372b507e670ee42cf776654fc69e71 /tests
parent693c95a631f3b6680e164ad49375a949ecd64d2e (diff)
downloadATCD-128b841ede1bb3c587bdf799f89eb33135705f03.tar.gz
ChangeLogTag: Fri Nov 15 07:48:37 2002 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu>
Diffstat (limited to 'tests')
-rw-r--r--tests/OS_Test.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/OS_Test.cpp b/tests/OS_Test.cpp
index 8a634164216..3c7de4ece39 100644
--- a/tests/OS_Test.cpp
+++ b/tests/OS_Test.cpp
@@ -231,6 +231,24 @@ string_emulation_test (void)
ACE_ASSERT (ACE_OS_String::strcmp (ACE_OS_String::itoa (42, itoa1, 16),
"2a") == 0);
+
+ ACE_ASSERT (ACE_OS_String::strcmp (ACE_OS_String::itoa (8, itoa1, 10),
+ "8") == 0);
+
+ ACE_ASSERT (ACE_OS_String::strcmp (ACE_OS_String::itoa (-8, itoa1, 10),
+ "-8") == 0);
+
+ ACE_ASSERT (ACE_OS_String::strcmp (ACE_OS_String::itoa (20345, itoa1, 10),
+ "20345") == 0);
+
+ ACE_ASSERT (ACE_OS_String::strcmp (ACE_OS_String::itoa (-20345, itoa1, 10),
+ "-20345") == 0);
+
+ ACE_ASSERT (ACE_OS_String::strcmp (ACE_OS_String::itoa (4566733, itoa1, 10),
+ "4566733") == 0);
+
+ ACE_ASSERT (ACE_OS_String::strcmp (ACE_OS_String::itoa (-4566733, itoa1, 10),
+ "-4566733") == 0);
}
#if defined (ACE_HAS_WCHAR)