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/ar...


From: strk
Subject: [Gnash-commit] gnash ./ChangeLog testsuite/actionscript.all/ar...
Date: Wed, 26 Apr 2006 20:02:41 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Branch:         
Changes by:     strk <address@hidden>   06/04/26 20:02:41

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

Log message:
        More uses of the check_equals macro

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/ChangeLog.diff?tr1=1.234&tr2=1.235&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/testsuite/actionscript.all/array.as.diff?tr1=1.2&tr2=1.3&r1=text&r2=text

Patches:
Index: gnash/ChangeLog
diff -u gnash/ChangeLog:1.234 gnash/ChangeLog:1.235
--- gnash/ChangeLog:1.234       Wed Apr 26 19:08:12 2006
+++ gnash/ChangeLog     Wed Apr 26 20:02:41 2006
@@ -5,6 +5,8 @@
        * testsuite/actionscript.all/Global.as: example usage of
        the check_equals() macro.
        * server/gen-files.sh: fixed escaping in sed code
+       * testsuite/actionscript.all/array.as: more use
+       of the check_equals() macro
 
 2006-04-25  Rob Savoye  <address@hidden>
 
Index: gnash/testsuite/actionscript.all/array.as
diff -u gnash/testsuite/actionscript.all/array.as:1.2 
gnash/testsuite/actionscript.all/array.as:1.3
--- gnash/testsuite/actionscript.all/array.as:1.2       Tue Feb 14 08:17:51 2006
+++ gnash/testsuite/actionscript.all/array.as   Wed Apr 26 20:02:41 2006
@@ -13,13 +13,13 @@
 b.push(551,"asdf",12);
 
 check ( a != undefined );
-check ( typeof(a) == "array" );
+check_equals ( typeof(a), "object" );
 // reference at sephiroth.it/reference.php says (under "==")
 // that two arrays are always considered NOT equal - need to verify
 check ( a != b ); 
 
-check ( a.length() == 3 );
-check ( a[2] == 12 );
+check_equals ( a.length(), 3 );
+check_equals ( a[2], 12 );
 check ( a.pop() == 12 );
 check ( a[2] == undefined );
 check ( a[1] == "asdf" );
@@ -29,7 +29,7 @@
 check ( a[0] == 200 );
 check ( a.tostring() == "200,551");
 a.push(7,8,9);
-check ( a.length() == 5);
+check_equals ( a.length(), 5);
 check ( a[100] == undefined );
 check ( a[5] == undefined );
 check ( a[4] == 9 );
@@ -47,12 +47,12 @@
 
 // Check sort functions
 a.sort();
-check ( a.tostring() == "200,551,7,8,9" );
+check_equals ( a.tostring(), "200,551,7,8,9" );
 a.push(200,7,200,7,200,8,8,551,7,7);
 a.sort( Array.NUMERIC );
 check ( a.tostring() == "7,7,7,7,7,8,8,8,9,200,200,200,200,551,551" );
 a.sort( Array.UNIQUESORT | Array.DESCENDING | Array.NUMERIC);
-check ( a.tostring() == "551,200,9,8,7" );
+check_equals ( a.tostring() , "551,200,9,8,7" );
 
 // Test multi-parameter constructor, and keep testing sort cases
 var trysortarray = new Array("But", "alphabet", "Different", "capitalization");
@@ -68,7 +68,7 @@
 // make sure pops on an empty array don't cause problems
 check ( b.pop() == undefined );
 b.pop(); b.pop();
-check ( b.length() == 0 );
+check_equals ( b.length(), 0 );
 b.unshift(8,2);
 b.push(4,3);
 b.pop();
@@ -84,8 +84,8 @@
 
 // check concat, slice
 var bclone = b.concat();
-check ( bclone.length() == 0 );
-check ( b.length() == 0 );
+check_equals ( bclone.length(), 0 );
+check_equals ( b.length(), 0 );
 var basic = b.concat(0,1,2);
 var concatted = basic.concat(3,4,5,6);
 check ( concatted.join() == "0,1,2,3,4,5,6" );
@@ -97,20 +97,23 @@
 check ( portion.tostring() == "3,4" );
 portion = portion.slice(1, 2);
 check ( portion.tostring() == "4" );
-check ( portion.length() == 1);
+check_equals ( portion.length(), 1);
 
 // Test single parameter constructor, and implicitly expanding array
 var c = new Array(10);
-check ( typeof(c) == "array" );
-check ( c.length() == 10 );
+check_equals ( typeof(c), "object" );
+check_equals ( c.length(), 10 );
 check ( c[5] == undefined );
 c[1000] = 283;
 check ( c[1000] == 283 );
 check ( c[1001] == undefined );
 check ( c[999] == undefined );
-check ( c.length() == 1001 );
+check_equals ( c.length(), 1001 );
 
 // $Log: array.as,v $
+// Revision 1.3  2006/04/26 20:02:41  strk
+// More uses of the check_equals macro
+//
 // Revision 1.2  2006/02/14 08:17:51  corfe
 // Change all tests to use new check macro. Add tests for all implemented 
array functions, as well as several tests for the unimplemented sort function.
 //




reply via email to

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