gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/ops.as


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/ops.as
Date: Wed, 26 Sep 2007 10:41:03 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/09/26 10:41:03

Modified files:
        .              : ChangeLog 
        testsuite/actionscript.all: ops.as 

Log message:
                * testsuite/actionscript.all/ops.as: add test for bitwise and 
between
                  negative and positive number.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4418&r2=1.4419
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/ops.as?cvsroot=gnash&r1=1.22&r2=1.23

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4418
retrieving revision 1.4419
diff -u -b -r1.4418 -r1.4419
--- ChangeLog   26 Sep 2007 10:15:50 -0000      1.4418
+++ ChangeLog   26 Sep 2007 10:41:02 -0000      1.4419
@@ -1,5 +1,10 @@
 2007-09-26 Sandro Santilli <address@hidden>
 
+       * testsuite/actionscript.all/ops.as: add test for bitwise and between
+         negative and positive number.
+
+2007-09-26 Sandro Santilli <address@hidden>
+
        * backend/sound_handler.h (create_sound): document meaning of a NULL
          data.
        * backend/sound_handler_gst.cpp (create_sound): don't choke on NULL

Index: testsuite/actionscript.all/ops.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/ops.as,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -b -r1.22 -r1.23
--- testsuite/actionscript.all/ops.as   16 Sep 2007 19:24:38 -0000      1.22
+++ testsuite/actionscript.all/ops.as   26 Sep 2007 10:41:02 -0000      1.23
@@ -20,7 +20,7 @@
  *  Test binary predicates (equal, less_then, greater_then, logical and 
bitwise ops)
  */
 
-rcsid="$Id: ops.as,v 1.22 2007/09/16 19:24:38 strk Exp $";
+rcsid="$Id: ops.as,v 1.23 2007/09/26 10:41:02 strk Exp $";
 
 #include "check.as"
 
@@ -360,6 +360,12 @@
 check_equals( (3&2), 2 );
 // TODO ... 
 
+check_equals ((-1 & 1), 1);
+check_equals ((1 & -1), 1);
+
+check_equals ((-2 & 1), 0);
+check_equals ((1 & -2), 0);
+
 //------------------------------------------------
 // Bitwise OR operator (ACTION_BITWISEOR : 0x61)
 //------------------------------------------------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]