<commit_before>var assert = require('assert');
var mac = require('..');

describe('mac-regex', function() {

  it('should find a XX-XX-XX-XX-XX-XX mac when it exists', function() {
    assert.equal(mac().test('aa-bb-cc-dd-ee-ff'), true);
  });

  it('should find a XX:XX:XX:XX:XX:XX mac when it exists', function() {
    assert.equal(mac().test('aa:bb:cc:dd:ee:ff'), true);
  });

  it('should find a XX:XX:XX:XX:XX:XX mac when it exists regardless of case', function() {
    assert.equal(mac().test('aa:bB:cc:dd:ee:ff'), true);
  });

  it('should find a XX:XX:XX:XX:XX:XX mac when it exists with all digits', function() {
    assert.equal(mac().test('11-22-33-44-55-66'), true);
  });
});<commit_msg>Add more mac tests<commit_after>var assert = require('assert');
var mac = require('..');

describe('mac-regex', function() {

  it('should find a XX-XX-XX-XX-XX-XX mac when it exists', function() {
    assert.equal(mac().test('aa-bb-cc-dd-ee-ff'), true);
  });

  it('should find a XX:XX:XX:XX:XX:XX mac when it exists', function() {
    assert.equal(mac().test('aa:bb:cc:dd:ee:ff'), true);
  });

  it('should find a XX:XX:XX:XX:XX:XX mac when it exists regardless of case', function() {
    assert.equal(mac().test('aa:bB:cc:dd:ee:ff'), true);
  });

  it('should find a XX:XX:XX:XX:XX:XX mac when it exists with all digits', function() {
    assert.equal(mac().test('11-22-33-44-55-66'), true);
  });

  it('should not find a mac when it does not exist', function() {
    var invalidMacs = ['', 'aa', 'aabbccddeeff', '1234', '*&^(&^'];
    invalidMacs.forEach(function(invalidMac) {
      assert.equal(mac().test(invalidMac), false);
    });
  });
});
{'fraction_non_alphanumeric': 0.21980676328502416, 'fraction_numerical': 0.016908212560386472, 'mean_word_length': 4.178125, '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': '6364233', 'n_tokens_mistral': 625, 'n_tokens_neox': 595, 'n_words': 138}