<commit_before>/*jshint node:true, mocha:true */

'use strict';

require('should');

var runtimeToSeconds = require('../src/');

describe('runtime to seconds', function() {
  it('converts hh:mm:ss or mm:ss to seconds', function() {
    runtimeToSeconds('1:25:46').should.be.exactly(5146);
    runtimeToSeconds('25:46').should.be.exactly(1546);
    runtimeToSeconds('46').should.be.exactly(46);
  });
});<commit_msg>test(arity): ensure fn is unary<commit_after>/*jshint node:true, mocha:true */

'use strict';

require('should');

var fn = require('../src/');

describe('runtime to seconds', function() {
  it('should be unary', function() {
    fn.length.should.be.exactly(1);
  });

  it('converts hh:mm:ss or mm:ss to seconds', function() {
    fn('1:25:46').should.be.exactly(5146);
    fn('25:46').should.be.exactly(1546);
    fn('46').should.be.exactly(46);
  });
});
{'fraction_non_alphanumeric': 0.21559633027522937, 'fraction_numerical': 0.04931192660550459, 'mean_word_length': 4.781456953642384, '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': '172472', 'n_tokens_mistral': 340, 'n_tokens_neox': 316, 'n_words': 55}