<commit_before>var test    = require('tape');
var getArgs = require('../lib/getArguments.js');

test('Basic arguments', function(t) {
  t.plan(4);

  function f() { }
  function g(a) { }
  function h(a, b) { }
  function i(a, b, c) { }

  t.deepEqual(getArgs(f), [], 'no args');
  t.deepEqual(getArgs(g), ['a'], '1 arg');
  t.deepEqual(getArgs(h), ['a', 'b'], '2 args');
  t.deepEqual(getArgs(i), ['a', 'b', 'c'], '3 args');

});<commit_msg>Arg order test<commit_after>var test    = require('tape');
var getArgs = require('../lib/getArguments.js');

test('Basic arguments', function(t) {
  t.plan(5);

  function f() { }
  function g(a) { }
  function h(a, b) { }
  function i(a, b, c) { }
  function j(c, b, a) { }

  t.deepEqual(getArgs(f), [], 'no args');
  t.deepEqual(getArgs(g), ['a'], '1 arg');
  t.deepEqual(getArgs(h), ['a', 'b'], '2 args');
  t.deepEqual(getArgs(i), ['a', 'b', 'c'], '3 args');
  t.deepEqual(getArgs(j), ['c', 'b', 'a'], '3 args -- order');

});
{'fraction_non_alphanumeric': 0.2674897119341564, 'fraction_numerical': 0.009259259259259259, 'mean_word_length': 3.9642857142857144, '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': '2592687', 'n_tokens_mistral': 403, 'n_tokens_neox': 398, 'n_words': 91}