activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r560928 - /activemq/activemq-cpp/trunk/src/decaf/src/test/decaf/lang/IntegerTest.cpp
Date Mon, 30 Jul 2007 11:37:19 GMT
Author: tabish
Date: Mon Jul 30 04:37:19 2007
New Revision: 560928

URL: http://svn.apache.org/viewvc?view=rev&rev=560928
Log:
http://issues.apache.org/activemq/browse/AMQCPP-103

Implementing the Primitive Wrappers fully

Modified:
    activemq/activemq-cpp/trunk/src/decaf/src/test/decaf/lang/IntegerTest.cpp

Modified: activemq/activemq-cpp/trunk/src/decaf/src/test/decaf/lang/IntegerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/test/decaf/lang/IntegerTest.cpp?view=diff&rev=560928&r1=560927&r2=560928
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/test/decaf/lang/IntegerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/decaf/src/test/decaf/lang/IntegerTest.cpp Mon Jul 30 04:37:19
2007
@@ -24,11 +24,11 @@
 void IntegerTest::test(void)
 {
     int x = Integer::parseInt("12");
-    int y = Integer::parseInt("12.1");
-    int z = Integer::parseInt("42 24");
+    int y = Integer::parseInt("FF", 16);
+    int z = Integer::parseInt("42");
 
     CPPUNIT_ASSERT( x == 12 );
-    CPPUNIT_ASSERT( y == 12 );
+    CPPUNIT_ASSERT( y == 255 );
     CPPUNIT_ASSERT( z == 42 );
 
     std::string x1 = Integer::toString( x );
@@ -36,7 +36,7 @@
     std::string z1 = Integer::toString( z );
 
     CPPUNIT_ASSERT( x1 == "12" );
-    CPPUNIT_ASSERT( y1 == "12" );
+    CPPUNIT_ASSERT( y1 == "255" );
     CPPUNIT_ASSERT( z1 == "42" );
 
 }



Mime
View raw message