activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r495307 - /incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/stomp/commands/BytesMessageCommandTest.h
Date Thu, 11 Jan 2007 17:46:45 GMT
Author: tabish
Date: Thu Jan 11 09:46:45 2007
New Revision: 495307

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

Modified:
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/stomp/commands/BytesMessageCommandTest.h

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/stomp/commands/BytesMessageCommandTest.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/stomp/commands/BytesMessageCommandTest.h?view=diff&rev=495307&r1=495306&r2=495307
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/stomp/commands/BytesMessageCommandTest.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/stomp/commands/BytesMessageCommandTest.h
Thu Jan 11 09:46:45 2007
@@ -213,8 +213,8 @@
             dos.writeBoolean( true );
             dos.writeByte( 1 );
             dos.writeChar( 'a' );
-            dos.writeFloat( 2.0f );
-            dos.writeDouble( 3.0 );
+            dos.writeFloat( 123456.789012f );
+            dos.writeDouble( 123456.789012 );
             dos.writeShort( 4 );
             dos.writeUnsignedShort( 5 );
             dos.writeInt( 6 );
@@ -262,7 +262,7 @@
             } catch( exceptions::IllegalStateException& e ){}
             
             try{
-                cmd.writeDouble( 2.0 );
+                cmd.writeDouble( 1.0 );
                 CPPUNIT_ASSERT( false );
             } catch( exceptions::IllegalStateException& e ){}
             
@@ -296,8 +296,8 @@
             CPPUNIT_ASSERT( cmd.readBoolean() == true );
             CPPUNIT_ASSERT( cmd.readByte() == 1 );
             CPPUNIT_ASSERT( cmd.readChar() == 'a' );
-            CPPUNIT_ASSERT( cmd.readFloat() == 2.0f );
-            CPPUNIT_ASSERT( cmd.readDouble() == 3.0 );
+            CPPUNIT_ASSERT( cmd.readFloat() == 123456.789012f );
+            CPPUNIT_ASSERT( cmd.readDouble() == 123456.789012 );
             CPPUNIT_ASSERT( cmd.readShort() == 4 );
             CPPUNIT_ASSERT( cmd.readUnsignedShort() == 5 );
             CPPUNIT_ASSERT( cmd.readInt() == 6 );
@@ -372,8 +372,8 @@
             cmd.writeBoolean( true );
             cmd.writeByte( 1 );
             cmd.writeChar( 'a' );
-            cmd.writeFloat( 2.0f );
-            cmd.writeDouble( 3.0 );
+            cmd.writeFloat( 123456.789012f );
+            cmd.writeDouble( 123456.789012 );
             cmd.writeShort( 4 );
             cmd.writeUnsignedShort( 5 );
             cmd.writeInt( 6 );
@@ -386,8 +386,8 @@
             CPPUNIT_ASSERT( cmd.readBoolean() == true );
             CPPUNIT_ASSERT( cmd.readByte() == 1 );
             CPPUNIT_ASSERT( cmd.readChar() == 'a' );
-            CPPUNIT_ASSERT( cmd.readFloat() == 2.0f );
-            CPPUNIT_ASSERT( cmd.readDouble() == 3.0 );
+            CPPUNIT_ASSERT( cmd.readFloat() == 123456.789012f );
+            CPPUNIT_ASSERT( cmd.readDouble() == 123456.789012 );
             CPPUNIT_ASSERT( cmd.readShort() == 4 );
             CPPUNIT_ASSERT( cmd.readUnsignedShort() == 5 );
             CPPUNIT_ASSERT( cmd.readInt() == 6 );



Mime
View raw message