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: Sun, 16 Sep 2007 19:24:39 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/09/16 19:24:39

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

Log message:
                * testsuite/actionscript.all/ops.as: more tests for comparison 
between
                  "different" nan values... :/

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

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4328
retrieving revision 1.4329
diff -u -b -r1.4328 -r1.4329
--- ChangeLog   16 Sep 2007 18:26:49 -0000      1.4328
+++ ChangeLog   16 Sep 2007 19:24:38 -0000      1.4329
@@ -1,3 +1,8 @@
+2007-09-16 Sandro Santilli <address@hidden>
+
+       * testsuite/actionscript.all/ops.as: more tests for comparison between
+         "different" nan values... :/
+
 2007-09-16 Bastiaan Jacques <address@hidden>
 
        * plugin/klash/klash_part.{cpp,h}: Properly add URL arguments to

Index: testsuite/actionscript.all/ops.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/ops.as,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -b -r1.21 -r1.22
--- testsuite/actionscript.all/ops.as   27 Aug 2007 03:41:43 -0000      1.21
+++ testsuite/actionscript.all/ops.as   16 Sep 2007 19:24:38 -0000      1.22
@@ -20,10 +20,11 @@
  *  Test binary predicates (equal, less_then, greater_then, logical and 
bitwise ops)
  */
 
-rcsid="$Id: ops.as,v 1.21 2007/08/27 03:41:43 zoulunkai Exp $";
+rcsid="$Id: ops.as,v 1.22 2007/09/16 19:24:38 strk Exp $";
 
 #include "check.as"
 
+
 //--------------------------------------------
 // Equality operator (ACTION_NEWEQUALS : 0x49)
 //--------------------------------------------
@@ -66,11 +67,22 @@
 y = 3;
 check(x == y);
 
-x = new Number(NaN);
+// for different nan values...
+x = Number(new Number(NaN));
 y = NaN;
+z = 0/0;
+xcheck_equals(typeof(x), 'number')
+check_equals(typeof(y), 'number');
+check_equals(typeof(z), 'number');
 check(isNaN(x));
 check(isNaN(y));
+check(isNaN(z));
 xcheck(x != y);
+xcheck(y != z);
+xcheck(x != z);
+check(x == x);
+check(y == y);
+check(z == z);
 
 // for Arrays
 ary1 = [1,2,3];
@@ -592,3 +604,4 @@
 y = ++x;
 xcheck(y!=NaN);
 check(isNaN(y));
+




reply via email to

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