git.asbjorn.biz
/
swftools.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
gfxpoly: added additional save method
[swftools.git]
/
lib
/
as3
/
ok
/
compareseq.as
1
package {
2
import flash.display.MovieClip
3
4
public class Main extends flash.display.MovieClip {
5
6
var count:int = 1;
7
var num:int = 16;
8
9
function istrue(b:Boolean) {
10
if(b) {
11
trace("ok "+count+"/"+num);
12
} else {
13
trace("error "+count+"/"+num);
14
}
15
count = count + 1
16
}
17
function isfalse(b:Boolean) {
18
istrue(!b);
19
}
20
21
function Main() {
22
trace("ok");
23
24
istrue(1 < 2 < 3);
25
isfalse(2 < 1 < 3);
26
isfalse(3 < 2 < 1);
27
isfalse(1 < 3 < 2);
28
isfalse(2 < 3 < 1);
29
isfalse(3 < 1 < 2);
30
31
isfalse(1 > 2 > 3);
32
isfalse(2 > 1 > 3);
33
istrue(3 > 2 > 1);
34
isfalse(1 > 3 > 2);
35
isfalse(2 > 3 > 1);
36
isfalse(3 > 1 > 2);
37
38
trace("[exit]");
39
}
40
}
41
}
42