diff options
Diffstat (limited to 'js/src/tests/test262/ch11/11.9/11.9.1/S11.9.1_A3.3.js')
-rw-r--r-- | js/src/tests/test262/ch11/11.9/11.9.1/S11.9.1_A3.3.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/js/src/tests/test262/ch11/11.9/11.9.1/S11.9.1_A3.3.js b/js/src/tests/test262/ch11/11.9/11.9.1/S11.9.1_A3.3.js new file mode 100644 index 000000000..342c6f961 --- /dev/null +++ b/js/src/tests/test262/ch11/11.9/11.9.1/S11.9.1_A3.3.js @@ -0,0 +1,21 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * If Type(y) is Number and Type(y) is Boolean, + * return the result of comparison x == ToNumber(y) + * + * @path ch11/11.9/11.9.1/S11.9.1_A3.3.js + * @description x is primitive number, y is primitive boolean + */ + +//CHECK#1 +if ((0 == false) !== true) { + $ERROR('#1: (0 == false) === true'); +} + +//CHECK#2 +if (("1" == true) !== true) { + $ERROR('#2: ("1" == true) === true'); +} + |