<commit_before>/*!
 * array-slice <https://github.com/jonschlinkert/array-slice>
 *
 * Copyright (c) 2014-2015, <NAME>.
 * Licensed under the MIT License.
 */

require('should');
var slice = require('./');

describe('array-slice:', function () {
  it('should return the specified range.', function () {
    var arr = ['a','b','d','e','f','g','h','i','j'];
   slice(arr, 3,6).should.eql(['e', 'f', 'g']);
  });
});<commit_msg>add tests<commit_after>/*!
 * array-slice <https://github.com/jonschlinkert/array-slice>
 *
 * Copyright (c) 2014-2015, <NAME>.
 * Licensed under the MIT License.
 */

require('should');
var slice = require('./');

describe('array-slice:', function () {
  it('should return the specified range.', function () {
    var arr = ['a','b','d','e','f','g','h','i','j'];
   slice(arr, 3, 6).should.eql(['e', 'f', 'g']);
   slice(arr, 1).should.eql(['b','d','e','f','g','h','i','j']);
   slice(arr, -1).should.eql(['j']);
  });
});
{'fraction_non_alphanumeric': 0.2911392405063291, 'fraction_numerical': 0.023206751054852322, 'mean_word_length': 4.392045454545454, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7157881', 'n_tokens_mistral': 359, 'n_tokens_neox': 338, 'n_words': 68}