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