S7.8.3_A3.3_T3.js (1104B)
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: "DecimalLiteral :: DecimalIntegerLiteral. ExponentPart" 6 es5id: 7.8.3_A3.3_T3 7 description: "ExponentPart :: e -DecimalDigits" 8 ---*/ 9 10 //CHECK#0 11 if (0.e-1 !== 0) { 12 throw new Test262Error('#0: 0.e-1 === 0'); 13 } 14 15 //CHECK#1 16 if (1.e-1 !== 0.1) { 17 throw new Test262Error('#1: 1.e-1 === 0.1'); 18 } 19 20 //CHECK#2 21 if (2.e-1 !== 0.2) { 22 throw new Test262Error('#2: 2.e-1 === 0.2'); 23 } 24 25 //CHECK#3 26 if (3.e-1 !== 0.3) { 27 throw new Test262Error('#3: 3.e-1 === 0.3'); 28 } 29 30 //CHECK#4 31 if (4.e-1 !== 0.4) { 32 throw new Test262Error('#4: 4.e-1 === 0.4'); 33 } 34 35 //CHECK#5 36 if (5.e-1 !== 0.5) { 37 throw new Test262Error('#5: 5.e-1 === 0.5'); 38 } 39 40 //CHECK#6 41 if (6.e-1 !== 0.6) { 42 throw new Test262Error('#6: 6.e-1 === 0.6'); 43 } 44 45 //CHECK#7 46 if (7.e-1 !== 0.7) { 47 throw new Test262Error('#7: 7.e-1 === 0.7'); 48 } 49 50 //CHECK#8 51 if (8.e-1 !== 0.8) { 52 throw new Test262Error('#8: 8.e-1 === 0.8'); 53 } 54 55 //CHECK#9 56 if (9.e-1 !== 0.9) { 57 throw new Test262Error('#9: 9.e-1 === 0.9'); 58 } 59 60 reportCompare(0, 0);