CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/08/27 08:28:42

Modified files:
        testsuite/server: StreamTest.cpp 

Log message:
        few more tests with 3 bytes

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/server/StreamTest.cpp?cvsroot=gnash&r1=1.1&r2=1.2

Patches:
Index: StreamTest.cpp
===================================================================
RCS file: /sources/gnash/gnash/testsuite/server/StreamTest.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- StreamTest.cpp      27 Aug 2007 08:11:43 -0000      1.1
+++ StreamTest.cpp      27 Aug 2007 08:28:42 -0000      1.2
@@ -201,6 +201,18 @@
        s.align();
        ret = s.read_uint(16); check_equals(ret, 43690);
 
+       /// bits: 101010 10101010101010 1010 (0xAAAAAA)
+
+       s.align();
+       ret = s.read_uint(6); check_equals(ret, 42);
+       ret = s.read_uint(14); check_equals(ret, 10922);
+       ret = s.read_uint(4); check_equals(ret, 10);
+
+       /// bits: 101010101010101010101010 (0xAAAAAA)
+
+       s.align();
+       ret = s.read_uint(24); check_equals(ret, 11184810);
+
        return 0;
 }
 


_______________________________________________
Gnash-commit mailing list
Gnash-commit@gnu.org
http://lists.gnu.org/mailman/listinfo/gnash-commit

Reply via email to