<commit_before>/**
 * (c) 2015 <NAME> <<EMAIL>>
 */

var assert = require('assert'),
    Email  = require('../index');

describe('Email', function() {
  it('emails can be converted to a string', function() {
    assert.equal(Email('<EMAIL>') + '', '<EMAIL>');
  });

  it('throws a typerror on invalid emails', function() {
    assert.throws(function() {
      Email('some_asdflkj@')
    }, TypeError);
  });

  it('returns an instance of Email', function() {
    assert(Email('<EMAIL>') instanceof Email);
  });

  it('is inspectable', function() {
    assert.equal('Email(<EMAIL>)', Email('<EMAIL>').inspect());
  });
});<commit_msg>add test<commit_after>/**
 * (c) 2015 <NAME> <<EMAIL>>
 */

var assert = require('assert'),
    util = require('util'),
    Email  = require('../index');

describe('Email', function() {
  it('emails can be converted to a string', function() {
    assert.equal(Email('<EMAIL>') + '', '<EMAIL>');
  });

  it('throws a typerror on invalid emails', function() {
    assert.throws(function() {
      Email('some_asdflkj@')
    }, TypeError);
  });

  it('returns an instance of Email', function() {
    assert(Email('<EMAIL>') instanceof Email);
  });

  it('is inspectable', function() {
    assert.equal('Email(<EMAIL>)', Email('<EMAIL>').inspect());
  });

  it('has a colored inspect', function(){
    assert.equal(util.inspect(Email('<EMAIL>'), { colors: true }), '\u001b[32mEmail(<EMAIL>)\u001b[39m');
  })
});
{'fraction_non_alphanumeric': 0.22736696613683482, 'fraction_numerical': 0.01243953006219765, 'mean_word_length': 4.062937062937063, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '7169038', 'n_tokens_mistral': 498, 'n_tokens_neox': 470, 'n_words': 104}