summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/ch11/11.9/11.9.5/S11.9.5_A8_T4.js
blob: 004549142de260c5593b41615bf71853c0deea3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/**
 * If Type(x) is different from Type(y), return true
 *
 * @path ch11/11.9/11.9.5/S11.9.5_A8_T4.js
 * @description x or y is null or undefined
 */

//CHECK#1
if (!(undefined !== null)) {
  $ERROR('#1: undefined !== null');
}

//CHECK#2
if (!(null !== undefined)) {
  $ERROR('#2: null !== undefined');
}

//CHECK#3
if (!(null !== 0)) {
  $ERROR('#3: null !== 0');
}

//CHECK#4
if (!(0 !== null)) {
  $ERROR('#4: 0 !== null');
}

//CHECK#5
if (!(null !== false)) {
  $ERROR('#5: null !== false');
}

//CHECK#6
if (!(false !== null)) {
  $ERROR('#6: false !== null');
}

//CHECK#7
if (!(undefined !== false)) {
  $ERROR('#7: undefined !== false');
}

//CHECK#8
if (!(false !== undefined)) {
  $ERROR('#8: false !== undefined');
}

//CHECK#9
if (!(null !== new Object())) {
  $ERROR('#9: null !== new Object()');
}

//CHECK#10
if (!(new Object() !== null)) {
  $ERROR('#10: new Object() !== null');
}

//CHECK#11
if (!(null !== "null")) {
  $ERROR('#11: null !== "null"');
}

//CHECK#12
if (!("null" !== null)) {
  $ERROR('#12: "null" !== null');
}

//CHECK#13
if (!(undefined !== "undefined")) {
  $ERROR('#13: undefined !== "undefined"');
}

//CHECK#14
if (!("undefined" !== undefined)) {
  $ERROR('#14: "undefined" !== undefined');
}