aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/15_Native/15.1_The_Global_Object/15.1.2_Function_Properties_of_the_Global_Object/15.1.2.2_parseInt/S15.1.2.2_A6.1_T6.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/sputnik_converted/15_Native/15.1_The_Global_Object/15.1.2_Function_Properties_of_the_Global_Object/15.1.2.2_parseInt/S15.1.2.2_A6.1_T6.js')
-rw-r--r--test/suite/sputnik_converted/15_Native/15.1_The_Global_Object/15.1.2_Function_Properties_of_the_Global_Object/15.1.2.2_parseInt/S15.1.2.2_A6.1_T6.js73
1 files changed, 0 insertions, 73 deletions
diff --git a/test/suite/sputnik_converted/15_Native/15.1_The_Global_Object/15.1.2_Function_Properties_of_the_Global_Object/15.1.2.2_parseInt/S15.1.2.2_A6.1_T6.js b/test/suite/sputnik_converted/15_Native/15.1_The_Global_Object/15.1.2_Function_Properties_of_the_Global_Object/15.1.2.2_parseInt/S15.1.2.2_A6.1_T6.js
deleted file mode 100644
index 4298010ff..000000000
--- a/test/suite/sputnik_converted/15_Native/15.1_The_Global_Object/15.1.2_Function_Properties_of_the_Global_Object/15.1.2.2_parseInt/S15.1.2.2_A6.1_T6.js
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright 2009 the Sputnik authors. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/**
- * @name: S15.1.2.2_A6.1_T6;
- * @section: 15.1.2.2;
- * @assertion: If S contains any character that is not a radix-R digit,
- * then let Z be the substring of S consisting of all characters before
- * the first such character; otherwise, let Z be S;
- * @description: Complex test. Radix-R notation in [0..9];
-*/
-
-
-// Converted for Test262 from original Sputnik source
-
-ES5Harness.registerTest( {
-id: "S15.1.2.2_A6.1_T6",
-
-path: "TestCases/15_Native/15.1_The_Global_Object/15.1.2_Function_Properties_of_the_Global_Object/15.1.2.2_parseInt/S15.1.2.2_A6.1_T6.js",
-
-assertion: "If S contains any character that is not a radix-R digit,",
-
-description: "Complex test. Radix-R notation in [0..9]",
-
-test: function testcase() {
- //CHECK#2
-if (parseInt("0123456789", 2) !== 1) {
- $ERROR('#2: parseInt("0123456789", 2) === 1. Actual: ' + (parseInt("0123456789", 2)));
-}
-
-//CHECK#3
-if (parseInt("01234567890", 3) !== 5) {
- $ERROR('#3: parseInt("01234567890", 3) === 5. Actual: ' + (parseInt("01234567890", 3)));
-}
-
-//CHECK#4
-if (parseInt("01234567890", 4) !== 27) {
- $ERROR('#4: parseInt("01234567890", 4) === 27. Actual: ' + (parseInt("01234567890", 4)));
-}
-
-//CHECK#5
-if (parseInt("01234567890", 5) !== 194) {
- $ERROR('#5: parseInt("01234567890", 5) === 194. Actual: ' + (parseInt("01234567890", 5)));
-}
-
-//CHECK#6
-if (parseInt("01234567890", 6) !== 1865) {
- $ERROR('#6: parseInt("01234567890", 6) === 1865. Actual: ' + (parseInt("01234567890", 6)));
-}
-
-//CHECK#7
-if (parseInt("01234567890", 7) !== 22875) {
- $ERROR('#7: parseInt("01234567890", 7) === 22875. Actual: ' + (parseInt("01234567890", 7)));
-}
-
-//CHECK#8
-if (parseInt("01234567890", 8) !== 342391) {
- $ERROR('#8: parseInt("01234567890", 8) === 342391. Actual: ' + (parseInt("01234567890", 8)));
-}
-
-//CHECK#9
-if (parseInt("01234567890", 9) !== 6053444) {
- $ERROR('#9: parseInt("01234567890", 9) === 6053444. Actual: ' + (parseInt("01234567890", 9)));
-}
-
-//CHECK#10
-if (parseInt("01234567890", 10) !== Number(1234567890)) {
- $ERROR('#10: parseInt("01234567890", 10) === Number(1234567890). Actual: ' + (parseInt("01234567890", 10)));
-}
-
- }
-});
-