rem: "( " + string  + " ).split(" + str_sep +", " + str_limit + " ).constructor == Array", true, string.split(separator, limit).constructor == Array );    AddTestCase( "( " + string + " ).split(" + str_sep  +", " + str_limit + " ).length", length, string.split(separator).length );    for ( var matches = 0; matches < split_array.length; matches++ ) { AddTestCase( "( " + string + " ).split(" + str_sep +", " + str_limit + " )[" + matches +"]", split_array[matches], string.split( separator )[matches] ); } 
add: "( " + string + " ).split(" + str_sep +", " + str_limit + " )[" + matches +"]", split_array[matches], string.split( separator )[matches] ); } 
context: function AddLimitedSplitCases(    string, separator, str_sep, limit, str_limit, split_array ) {    // verify that the result of split is an object of type Array    AddTestCase(        "( " + string  + " ).split(" + str_sep +", " + str_limit +            " ).constructor == Array",        true,        string.split(separator, limit).constructor == Array );    // check the length of the array    AddTestCase(        "( " + string + " ).split(" + str_sep  +", " + str_limit + " ).length",        length,        string.split(separator).length );    // check the value of each array item    for ( var matches = 0; matches < split_array.length; matches++ ) {        AddTestCase(            "( " + string + " ).split(" + str_sep +", " + str_limit + " )[" + matches +"]",            split_array[matches],            string.split( separator )[matches] );    }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/f5797aeb2410e2259028142b87595fe71f03e531/split-001.js/clean/js/tests/ecma_2/String/split-001.js