aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/13_Function_Definition/13.0_Chapter/S13.0_A3_T3.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/sputnik_converted/13_Function_Definition/13.0_Chapter/S13.0_A3_T3.js')
-rw-r--r--test/suite/sputnik_converted/13_Function_Definition/13.0_Chapter/S13.0_A3_T3.js44
1 files changed, 0 insertions, 44 deletions
diff --git a/test/suite/sputnik_converted/13_Function_Definition/13.0_Chapter/S13.0_A3_T3.js b/test/suite/sputnik_converted/13_Function_Definition/13.0_Chapter/S13.0_A3_T3.js
deleted file mode 100644
index 7346ff3d7..000000000
--- a/test/suite/sputnik_converted/13_Function_Definition/13.0_Chapter/S13.0_A3_T3.js
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2009 the Sputnik authors. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/**
-* @name: S13_A3_T3;
-* @section: 13;
-* @assertion: The Identifier in a FunctionExpression can be referenced from inside the FunctionExpression's FunctionBody to allow the function calling itself recursively;
-* @description: Creating simple recursive function that calculates factorial;
-*/
-
-
-// Converted for Test262 from original Sputnik source
-
-ES5Harness.registerTest( {
-id: "S13.0_A3_T3",
-
-path: "TestCases/13_Function_Definition/13.0_Chapter/S13.0_A3_T3.js",
-
-assertion: "The Identifier in a FunctionExpression can be referenced from inside the FunctionExpression\'s FunctionBody to allow the function calling itself recursively",
-
-description: "Creating simple recursive function that calculates factorial",
-
-test: function testcase() {
- function __func(arg){
- if (arg === 1) {
- return arg;
- } else {
- return __func(arg-1)*arg;
- }
-};
-
-var fact_of_3 = __func(3);
-
-//////////////////////////////////////////////////////////////////////////////
-//CHECK#1
-if (fact_of_3 !== 6) {
- $ERROR("#1: fact_of_3 === 6. Actual: fact_of_3 ==="+fact_of_3);
-}
-//
-//////////////////////////////////////////////////////////////////////////////
-
- }
-});
-