summaryrefslogtreecommitdiff
path: root/tests/Time_Value_Test.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-26 16:22:17 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-26 16:22:17 +0000
commitdf38e2971831a1aced2e011a75b1546aed80c4e4 (patch)
tree9b470ae948170a92d74c7cb6d0199184a71347c7 /tests/Time_Value_Test.cpp
parentbcf52fedeb5e68787eedc2d6d0488bba8e82f3c4 (diff)
downloadATCD-df38e2971831a1aced2e011a75b1546aed80c4e4.tar.gz
ChangeLogTag: Thu Aug 26 11:20:55 1999 David L. Levine <levine@cs.wustl.edu>
Diffstat (limited to 'tests/Time_Value_Test.cpp')
-rw-r--r--tests/Time_Value_Test.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/Time_Value_Test.cpp b/tests/Time_Value_Test.cpp
index 33e755aa0c6..46653d1f88d 100644
--- a/tests/Time_Value_Test.cpp
+++ b/tests/Time_Value_Test.cpp
@@ -190,12 +190,15 @@ main (int, ASYS_TCHAR *[])
ACE_Time_Value tv1;
ACE_Time_Value tv2 (2);
- ACE_Time_Value tv3 (100);
+ ACE_Time_Value tv3 (100U);
ACE_Time_Value tv4 (1, 1000000);
- ACE_Time_Value tv5 (2);
+ ACE_Time_Value tv5 (2UL);
ACE_Time_Value tv6 (1, -1000000);
ACE_Time_Value tv7 (2.0);
+ // Beware! 2.5 gets truncated to a long with value 2!
+ ACE_Time_Value tv8 (2.5);
+
ACE_ASSERT (tv1 == ACE_Time_Value (0));
ACE_ASSERT (tv2 < tv3);
ACE_ASSERT (tv2 <= tv2);
@@ -207,6 +210,7 @@ main (int, ASYS_TCHAR *[])
ACE_ASSERT (tv1 != tv2);
ACE_ASSERT (tv6 == tv1);
ACE_ASSERT (tv5 == tv7);
+ ACE_ASSERT (tv7 == tv8); // That's right! See above . . .
#if defined (sun) && !defined (ACE_LACKS_LONGLONG_T)
if (test_ace_u_longlong () != 0)