@pytest.mark.parametrize(u'text,number', [(u'7am', u'7'), (u'11p.m.', u'11')])
def test_issue736(en_tokenizer, text, number):
 tokens = en_tokenizer(text)
 assert (len(tokens) == 2)
 assert (tokens[0].text == number)

@ pytest . mark . parametrize ( u'text,number' , [ ( u'7am' , u'7' ) , ( u'11p.m.' , u'11' ) ] ) def test_issue736 ( en_tokenizer , text , number ) : tokens = en_tokenizer ( text ) assert ( len ( tokens ) == 2 ) assert ( tokens [ 0 ] . text == number )
test that times like "7am" are tokenized correctly and that numbers are converted to string .