aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/08_Types/8.8_The_List_Type/S8.8_A2_T3.js
blob: 86d7e08fdba531d90f73095249278328987bf86a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/**
* @name: S8.8_A2_T3;
* @section: 8.8;
* @assertion: Values of the List type are simply ordered sequences of values;
* @description: Call function, that concatenate all it`s arguments;
*/


// Converted for Test262 from original Sputnik source

ES5Harness.registerTest( {
id: "S8.8_A2_T3",

path: "TestCases/08_Types/8.8_The_List_Type/S8.8_A2_T3.js",

assertion: "Values of the List type are simply ordered sequences of values",

description: "Call function, that concatenate all it`s arguments",

test: function testcase() {
   function __mFunc(){var __accum=""; for (var i = 0; i < arguments.length; ++i){__accum += arguments[i]};return __accum;};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (__mFunc("A","B","C","D","E","F") !== "ABCDEF"){
  $ERROR('#1: function __mFunc(){var __accum=""; for (var i = 0; i < arguments.length; ++i){__accum += arguments[i]};return __accum;}; __mFunc("A","B","C","D","E","F") === "ABCDEF". Actual: ' + (__mFunc("A","B","C","D","E","F")));
}
//
//////////////////////////////////////////////////////////////////////////////

 }
});