<commit_before>if ( typeof require !== 'undefined' )
{
  moment = require('moment');
  expect = require("chai").expect;
  require('../moment.weekdaycalc');
}

describe('Sanity check', function(){
  it('plugin is attached to the momentjs',function(){
    expect(moment().weekdaycalc).to.a('function');
  });
});

describe('Syntax check', function(){
  it('3 args',function(){
    expect(moment().weekdaycalc([2015,0,1],[2015,11,31],[1,2,3,4,5])).to.equal(261);
  });
  it('2 args',function(){
    expect(moment([2015,0,1]).weekdaycalc([2015,11,31],[1,2,3,4,5])).to.equal(261);
  });
  it('1 arg',function(){
    expect(moment([2015,0,1]).weekdaycalc([1,2,3,4,5])).to.equal(261);
  });
});<commit_msg>more tests<commit_after>if ( typeof require !== 'undefined' )
{
  moment = require('moment');
  expect = require("chai").expect;
  require('../moment.weekdaycalc');
}

describe('Sanity check', function(){
  it('plugin is attached to the momentjs',function(){
    expect(moment().weekdaycalc).to.a('function');
  });
});

describe('Syntax check', function(){
  it('3 args',function(){
    expect(moment().weekdaycalc([2015,0,1],[2015,11,31],[1,2,3,4,5])).to.equal(261);
    expect(moment().weekdaycalc([2015,2,14],[2015,2,23],[5])).to.equal(1);
    expect(moment().weekdaycalc([2015,0,1],[2015,11,31],[0,1,2,3,4,5,6])).to.equal(365);
  });
  it('2 args',function(){
    expect(moment([2015,0,1]).weekdaycalc([2015,11,31],[1,2,3,4,5])).to.equal(261);    
  });
  it('1 arg',function(){
    expect(moment([2015,0,1]).weekdaycalc([1,2,3,4,5])).to.equal(261);
  });
});
{'fraction_non_alphanumeric': 0.2687140115163148, 'fraction_numerical': 0.1036468330134357, 'mean_word_length': 6.045045045045045, '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': '4969230', 'n_tokens_mistral': 667, 'n_tokens_neox': 584, 'n_words': 65}