S9.3.1_A29.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 ::: d or of HexDigit ::: D is 13" 6 es5id: 9.3.1_A29 7 description: > 8 Compare Number('0xD'), Number('0XD'), Number('0xd') and 9 Number('0Xd') with 13 10 ---*/ 11 assert.sameValue(+("0xd"), 13, 'The value of `+("0xd")` is expected to be 13'); 12 assert.sameValue(Number("0xD"), 13, 'Number("0xD") must return 13'); 13 assert.sameValue(Number("0Xd"), 13, 'Number("0Xd") must return 13'); 14 assert.sameValue(Number("0XD"), 13, 'Number("0XD") must return 13'); 15 16 reportCompare(0, 0);