2011-09-07 08:35:18 +02:00
|
|
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
2014-07-22 01:09:02 +02:00
|
|
|
/*---
|
|
|
|
info: "DecimalLiteral :: .DecimalDigits ExponentPart"
|
2014-07-25 00:41:42 +02:00
|
|
|
es5id: 7.8.3_A2.2_T2
|
2014-07-22 01:09:02 +02:00
|
|
|
description: "ExponentPart :: E DecimalDigits"
|
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
|
|
|
//CHECK#0
|
|
|
|
if (.0E1 !== 0) {
|
2021-07-28 22:45:44 +02:00
|
|
|
throw new Test262Error('#0: .0E1 === 0');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#1
|
|
|
|
if (.1E1 !== 1) {
|
2021-07-28 22:45:44 +02:00
|
|
|
throw new Test262Error('#1: .1E1 === 1');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#2
|
|
|
|
if (.2E1 !== 2) {
|
2021-07-28 22:45:44 +02:00
|
|
|
throw new Test262Error('#2: .2E1 === 2');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#3
|
|
|
|
if (.3E1 !== 3) {
|
2021-07-28 22:45:44 +02:00
|
|
|
throw new Test262Error('#3: .3E1 === 3');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#4
|
|
|
|
if (.4E1 !== 4) {
|
2021-07-28 22:45:44 +02:00
|
|
|
throw new Test262Error('#4: .4E1 === 4');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#5
|
|
|
|
if (.5E1 !== 5) {
|
2021-07-28 22:45:44 +02:00
|
|
|
throw new Test262Error('#5: .5E1 === 5');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#6
|
|
|
|
if (.6E1 !== 6) {
|
2021-07-28 22:45:44 +02:00
|
|
|
throw new Test262Error('#6: .6E1 === 6');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#7
|
|
|
|
if (.7E1 !== 7) {
|
2021-07-28 22:45:44 +02:00
|
|
|
throw new Test262Error('#7: .7E1 === 7');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#8
|
|
|
|
if (.8E1 !== 8) {
|
2021-07-28 22:45:44 +02:00
|
|
|
throw new Test262Error('#8: .8E1 === 8');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#9
|
|
|
|
if (.9E1 !== 9) {
|
2021-07-28 22:45:44 +02:00
|
|
|
throw new Test262Error('#9: .9E1 === 9');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|