<commit_before>describe('millisecond', function () {
  'use strict';

  var assume = require('assume')
    , ms = require('./');

  it('should preserve ms', function () {
    assume(ms('100')).to.equal(100);
  });

  it('can parse numbers', function () {
    assume(ms(100)).to.equal(100);
  });

  it('should convert from m to ms', function () {
    assume(ms('1m')).to.equal(60000);
    assume(ms('1min')).to.equal(60000);
    assume(ms('1mins')).to.equal(60000);
    assume(ms('1minute')).to.equal(60000);
    assume(ms('1minutes')).to.equal(60000);
  });

  it('should convert from h to ms', function () {
    assume(ms('1h')).to.equal(3600000);
    assume(ms('1hr')).to.equal(3600000);
    assume(ms('1hrs')).to.equal(3600000);
    assume(ms('1hour')).to.equal(3600000);
    assume(ms('1hours')).to.equal(3600000);
  });

  it('should convert d to ms', function () {
    assume(ms('2d')).to.equal(172800000);
    assume(ms('2day')).to.equal(172800000);<commit_msg>[test] Adding test case for bug reported & fixed in #1<commit_after>describe('millisecond', function () {
  'use strict';

  var assume = require('assume')
    , ms = require('./');

  it('should preserve strings that represent numbers', function () {
    assume(ms('100')).to.equal(100);
    assume(ms('10')).to.equal(10);
    assume(ms('1')).to.equal(1);
    assume(ms('0')).to.equal(0);
  });

  it('can parse numbers', function () {
    assume(ms(100)).to.equal(100);
  });

  it('should convert from m to ms', function () {
    assume(ms('1m')).to.equal(60000);
    assume(ms('1min')).to.equal(60000);
    assume(ms('1mins')).to.equal(60000);
    assume(ms('1minute')).to.equal(60000);
    assume(ms('1minutes')).to.equal(60000);
  });

  it('should convert from h to ms', function () {
    assume(ms('1h')).to.equal(3600000);
    assume(ms('1hr')).to.equal(3600000);
    assume(ms('1hrs')).to.equal(3600000);
    assume(ms('1hour')).to.equal(3600000);
    assume(ms('1hours')).to.equal(3600000);
  });

  it('should convert d to ms', function () {
    assume(ms('2d')).to.equal(172800000);
    assume(ms('2day')).to.equal(172800000);
{'fraction_non_alphanumeric': 0.23197343453510436, 'fraction_numerical': 0.10104364326375712, 'mean_word_length': 4.156479217603912, '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': '4947569', 'n_tokens_mistral': 878, 'n_tokens_neox': 795, 'n_words': 116}