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


From: strk
Subject: [Gnash-commit] gnash ./ChangeLog testsuite/actionscript.all/Gl...
Date: Wed, 26 Apr 2006 13:07:10 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Branch:         
Changes by:     strk <address@hidden>   06/04/26 13:07:10

Modified files:
        .              : ChangeLog 
        testsuite/actionscript.all: Global.as check.as 

Log message:
        Added check_equals() macro in check.as utility lib, modified a failing
        testcase in Global.as to make use of the new macro.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/ChangeLog.diff?tr1=1.232&tr2=1.233&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/testsuite/actionscript.all/Global.as.diff?tr1=1.9&tr2=1.10&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/testsuite/actionscript.all/check.as.diff?tr1=1.5&tr2=1.6&r1=text&r2=text

Patches:
Index: gnash/ChangeLog
diff -u gnash/ChangeLog:1.232 gnash/ChangeLog:1.233
--- gnash/ChangeLog:1.232       Wed Apr 26 02:20:07 2006
+++ gnash/ChangeLog     Wed Apr 26 13:07:10 2006
@@ -1,3 +1,10 @@
+2006-04-26 Sandro Santilli <address@hidden>
+
+       * testsuite/actionscript.all/check.as: added check_equals()
+       macro.
+       * testsuite/actionscript.all/Global.as: example usage of
+       the check_equals() macro.
+
 2006-04-25  Rob Savoye  <address@hidden>
 
        * packaging/debian/changelog: Reverse the order of entries so it
Index: gnash/testsuite/actionscript.all/Global.as
diff -u gnash/testsuite/actionscript.all/Global.as:1.9 
gnash/testsuite/actionscript.all/Global.as:1.10
--- gnash/testsuite/actionscript.all/Global.as:1.9      Mon Apr 24 23:05:56 2006
+++ gnash/testsuite/actionscript.all/Global.as  Wed Apr 26 13:07:10 2006
@@ -53,7 +53,7 @@
 // Test parseint with hex
 check ( parseInt('0x111') == 273 );
 // Test parseint with octal
-check ( parseInt('   0352') == 352 );
+check_equals ( parseInt('   0352'), 352 );
 // Test parseint with 36 base
 check ( parseInt('2GA',36) == (10+16*36+2*36*36) );
 // Test parseint with base 17 - the 'H' is not part of base 17, only the first 
two digits are valid
Index: gnash/testsuite/actionscript.all/check.as
diff -u gnash/testsuite/actionscript.all/check.as:1.5 
gnash/testsuite/actionscript.all/check.as:1.6
--- gnash/testsuite/actionscript.all/check.as:1.5       Mon Apr 24 23:05:56 2006
+++ gnash/testsuite/actionscript.all/check.as   Wed Apr 26 13:07:10 2006
@@ -68,4 +68,15 @@
        else fail_check(#expr + \
                " [" + __FILE__ + ":" + __LINE__ + "]" ); \
 
+//
+// Use check_equals(<obtained>, <expected>)
+//
+#define check_equals(obt, exp)  \
+       if ( obt == exp ) pass_check( \
+               #obt + " == " + #exp + \
+               " [" + __FILE__ + ":" + __LINE__ + "]" ); \
+       else fail_check("expected: " + #exp + \
+               " obtained: " + obt + \
+               " [" + __FILE__ + ":" + __LINE__ + "]" ); \
+
 #endif // _CHECK_AS_




reply via email to

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