S9.3.1_A27.js (632B)
1 // Copyright 2009 the Sputnik authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 info: "The MV of HexDigit ::: b or of HexDigit ::: B is 11" 6 es5id: 9.3.1_A27 7 description: > 8 Compare Number('0xB'), Number('0XB'), Number('0xb') and 9 Number('0Xb') with 11 10 ---*/ 11 assert.sameValue(Number("0xb"), 11, 'Number("0xb") must return 11'); 12 assert.sameValue(Number("0xB"), 11, 'Number("0xB") must return 11'); 13 assert.sameValue(+("0Xb"), 11, 'The value of `+("0Xb")` is expected to be 11'); 14 assert.sameValue(Number("0XB"), 11, 'Number("0XB") must return 11'); 15 16 reportCompare(0, 0);