Skip to content

Commit

Permalink
Add regression test for #891
Browse files Browse the repository at this point in the history
  • Loading branch information
ines committed Mar 19, 2017
1 parent 422a101 commit 5712da6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spacy/tests/regression/test_issue891.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# coding: utf8
from __future__ import unicode_literals

import pytest

@pytest.mark.xfail
@pytest.mark.parametrize('text', ["want/need"])
def test_issue891(en_tokenizer, text):
"""Test that / infixes are split correctly."""
tokens = en_tokenizer(text)
assert len(tokens) == 3
assert tokens[1].text == "/"

0 comments on commit 5712da6

Please sign in to comment.