gnash-commit
[Top][All Lists]
Advanced

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

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


From: Martin Guy
Subject: [Gnash-commit] gnash/testsuite/actionscript.all Number.as
Date: Sat, 03 Mar 2007 11:28:36 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Martin Guy <martinwguy> 07/03/03 11:28:36

Modified files:
        testsuite/actionscript.all: Number.as 

Log message:
        Add test for unary minus operator

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Number.as?cvsroot=gnash&r1=1.10&r2=1.11

Patches:
Index: Number.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Number.as,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- Number.as   1 Feb 2007 11:57:20 -0000       1.10
+++ Number.as   3 Mar 2007 11:28:36 -0000       1.11
@@ -26,7 +26,7 @@
 // TODO: test with SWF target != 6 (the only one tested so far)
 //     
 
-rcsid="$Id: Number.as,v 1.10 2007/02/01 11:57:20 strk Exp $";
+rcsid="$Id: Number.as,v 1.11 2007/03/03 11:28:36 martinwguy Exp $";
 
 #include "check.as"
 
@@ -60,3 +60,8 @@
 Object.prototype.valueOf = function() { return "fake_value"; };
 check_equals(n1.valueOf(), 268); // doesn't inherit from Object
 Object.prototype.valueOf = backup;
+
+// Check unary minus operator
+n1 = -n1;
+check_equals (-268 , n1);
+check_equals (n1.toString(), "-268");




reply via email to

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