File tree Expand file tree Collapse file tree 4 files changed +48
-0
lines changed
jerry-test-suite/11/11.08/11.08.06 Expand file tree Collapse file tree 4 files changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright JS Foundation and other contributors, http://js.foundation
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ var a = null ;
16
+ var c = a instanceof Object ;
17
+ assert ( ! c ) ;
Original file line number Diff line number Diff line change 51
51
catch ( e ) {
52
52
assert ( e instanceof ReferenceError ) ;
53
53
}
54
+
55
+ assert ( 0.1 + 0.2 != 0.3 ) ;
Original file line number Diff line number Diff line change @@ -26,3 +26,5 @@ assert(big == 2147483649); // overflow on 32bit numbers
26
26
assert ( ( 1152921504606846976 ) . toString ( ) === "1152921504606847000" )
27
27
28
28
assert ( 1.797693134862315808e+308 === Infinity ) ;
29
+
30
+ assert ( 9999999999999999 == 10000000000000000 ) ;
Original file line number Diff line number Diff line change
1
+ // Copyright JS Foundation and other contributors, http://js.foundation
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ var x = [ 0 ] ;
16
+ assert ( x == x ) ;
17
+ assert ( x == ! x ) ;
18
+ assert ( Array ( 3 ) == ",," ) ;
19
+
20
+ assert ( [ ] + [ ] == "" ) ;
21
+ assert ( [ ] + { } == "[object Object]" ) ;
22
+ assert ( eval ( "{} + []" ) == 0 ) ;
23
+ assert ( isNaN ( eval ( "{} + {}" ) ) ) ;
24
+ assert ( { } + [ ] == "[object Object]" ) ;
25
+ assert ( { } + { } == "[object Object][object Object]" ) ;
26
+
27
+ assert ( ( ! + [ ] + [ ] + ! [ ] ) === "truefalse" ) ;
You can’t perform that action at this time.
0 commit comments