From ae39de536b42b7a69bd2691cc7fee486c3bd0b0a Mon Sep 17 00:00:00 2001 From: kramm Date: Tue, 6 Jan 2009 21:26:32 +0000 Subject: [PATCH] test x|y|z --- lib/as3/ok/ops.as | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/as3/ok/ops.as b/lib/as3/ok/ops.as index 642ea12..f11d50c 100644 --- a/lib/as3/ok/ops.as +++ b/lib/as3/ok/ops.as @@ -3,7 +3,7 @@ package { import flash.display.MovieClip public class Main extends flash.display.MovieClip { var count:int = 1; - var num:int = 27; + var num:int = 28; function assert(b:Boolean) { if(b) { trace("ok "+count+"/"+num); @@ -57,6 +57,8 @@ package { assert((0xff ^ 0x55) == 0xaa); assert((1 & ~1) == 0); assert((1|~1)==~0); + + assert((1|2|4|8|16|32|64|128) == 0xff); /* test shift operations */ trace("[shift operations]"); -- 1.7.10.4