git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added pdf2pdf tool
[swftools.git]
/
lib
/
as3
/
ok
/
strings.as
diff --git
a/lib/as3/ok/strings.as
b/lib/as3/ok/strings.as
index
5b9f121
..
c9364d8
100644
(file)
--- a/
lib/as3/ok/strings.as
+++ b/
lib/as3/ok/strings.as
@@
-8,7
+8,7
@@
package {
function Main() {
var email = "test@test.de";
function Main() {
var email = "test@test.de";
- if(email.length == 12) trace("ok 1/5");
+ if(email.length == 12) trace("ok 1/7");
if(email.charAt(4)!='@') trace("error");
var x;
if(email.charAt(4)!='@') trace("error");
var x;
@@
-18,16
+18,23
@@
package {
y=true;
}
}
y=true;
}
}
- if(y) trace("ok 2/5");
+ if(y) trace("ok 2/7");
var zero1 = "test\0test";
if(zero1.charAt(4)!='\0') trace("error");
var zero1 = "test\0test";
if(zero1.charAt(4)!='\0') trace("error");
- else trace("ok 3/5");
+ else trace("ok 3/7");
if(this.mystring.charAt(1)!='\0') trace("error");
if(this.mystring.charAt(1)!='\0') trace("error");
- else trace("ok 4/5");
+ else trace("ok 4/7");
if(this.mystring.charAt(3)!='\xff') trace("error");
if(this.mystring.charAt(3)!='\xff') trace("error");
- else trace("ok 5/5");
+ else trace("ok 5/7");
+
+ if("\w" == "\\w")
+ trace("ok 6/7");
+
+ var str:String = "ok 7/7";
+ trace(str.toString());
+
trace("[exit]");
}
}
trace("[exit]");
}
}