<commit_before>import test from 'tape'
import parser from '../parser'
import NoMeridiemError from '../errors/NoMeridiemError'

test('4-5 throws error', t => {
  t.throws(() => parser('4-5 working on things'), NoMeridiemError, '4-5 throws')
  t.end()
})
<commit_msg>test specifying one meridiem does not throw<commit_after>import test from 'tape'
import parser from '../parser'
import NoMeridiemError from '../errors/NoMeridiemError'

test('4-5 throws error', t => {
  t.throws(() => parser('4-5 working on things'), NoMeridiemError, '4-5 throws')
  t.end()
})

test('specifying meridiem does not throw', t => {
  t.doesNotThrow(() => parser('4pm-5 stuff'), 'start has a meridiem')
  t.doesNotThrow(() => parser('4-5pm stuff'), 'end has a meridiem')
  t.doesNotThrow(() => parser('4pm-5pm stuff'), 'both has a meridiem')
  t.end()
})
{'fraction_non_alphanumeric': 0.17908653846153846, 'fraction_numerical': 0.021634615384615384, 'mean_word_length': 4.628378378378378, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4318992', 'n_tokens_mistral': 287, 'n_tokens_neox': 285, 'n_words': 84}