<commit_before>var test      = require('tape');
var parseInts = require('../');

test.skip('#1 - require radix is an integer or undefined', function (t) {
  var nonInts = ['1', [1], {}];
  t.plan(nonInts.length);
  nonInts.forEach(function (radix) {
    t.throws(function () {
      parseInts('1', radix);
    });
  });
});<commit_msg>Add failing test for negative integers.<commit_after>var test      = require('tape');
var parseInts = require('../');

var ints;

test.skip('#1 - require radix is an integer or undefined', function (t) {
  var nonInts = ['1', [1], {}];
  t.plan(nonInts.length);
  nonInts.forEach(function (radix) {
    t.throws(function () {
      parseInts('1', radix);
    });
  });
});

test('#3 supports negative integers', function (t) {
  t.plan(2);

  ints = parseInts('-3, -1');
  t.same(ints, [ -3, -1 ]);

  ints = parseInts('-3--1');
  t.same(ints, [ -3, -2, -1 ]);
});
{'fraction_non_alphanumeric': 0.21913236929922136, 'fraction_numerical': 0.021134593993325918, 'mean_word_length': 3.265402843601896, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '602546', 'n_tokens_mistral': 336, 'n_tokens_neox': 333, 'n_words': 78}