repo.or.cz
/
swfdec.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add test for frames and bytes properties of empty movies
[swfdec.git]
/
test
/
trace
/
tointeger-numbers-6.swf.trace
blob
f0b0497bec8657de3e1be9b162841b106fa5c830
1
check ToInteger for various numbers
2
Infinity ==int=> 0
3
-Infinity ==int=> 0
4
NaN ==int=> 0
5
0 ==int=> 0
6
0 ==int=> 0
7
1 ==int=> 1
8
-1 ==int=> -1
9
-2 ==int=> -2
10
2 ==int=> 2
11
3 ==int=> 3
12
42 ==int=> 42
13
0.5 ==int=> 0
14
-0.5 ==int=> 0
15
1.5 ==int=> 1
16
-1.5 ==int=> -1
17
3.1415926535 ==int=> 3
18
-1.234567 ==int=> -1
19
1e-9 ==int=> 0
20
0.99999999 ==int=> 0
21
2147483647 ==int=> 2147483647
22
2147483648 ==int=> -2147483648
23
4294967295 ==int=> -1
24
4294967296 ==int=> 0
25
-2147483647 ==int=> -2147483647
26
-2147483648 ==int=> -2147483648
27
-4294967295 ==int=> 1
28
-4294967296 ==int=> 0