blob: b71a3b1314d0f2ef53bde13691a3c89b7a0a90be (
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
|
When comparing `null` with another value for loose equality or inequality,
the values `0`, `0.0`, `false` and `"0x0"` (any string interpreted as
numeric null) were incorrectly treated as equal.
-- Testcase --
{{ null == 0 }}
{{ null == 0.0 }}
{{ null == false }}
{{ null == "0x0" }}
{{ null == null }}
{{ null != 0 }}
{{ null != 0.0 }}
{{ null != false }}
{{ null != "0x0" }}
{{ null != null }}
-- End --
-- Expect stdout --
false
false
false
false
true
true
true
true
true
false
-- End --
|