• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/ucode/tests/custom/99_bugs/28_null_equality

  1 When comparing `null` with another value for loose equality or inequality,
  2 the values `0`, `0.0`, `false` and `"0x0"` (any string interpreted as
  3 numeric null) were incorrectly treated as equal.
  4 
  5 -- Testcase --
  6 {{ null == 0 }}
  7 {{ null == 0.0 }}
  8 {{ null == false }}
  9 {{ null == "0x0" }}
 10 {{ null == null }}
 11 
 12 {{ null != 0 }}
 13 {{ null != 0.0 }}
 14 {{ null != false }}
 15 {{ null != "0x0" }}
 16 {{ null != null }}
 17 -- End --
 18 
 19 -- Expect stdout --
 20 false
 21 false
 22 false
 23 false
 24 true
 25 
 26 true
 27 true
 28 true
 29 true
 30 false
 31 -- End --

This page was automatically generated by LXR 0.3.1.  •  OpenWrt