mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Update regression test for #801 to match current expected behaviour
This commit is contained in:
parent
012f4820cb
commit
afc6365388
|
@ -4,15 +4,14 @@ from __future__ import unicode_literals
|
|||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.xfail
|
||||
@pytest.mark.parametrize('text,tokens', [
|
||||
('"deserve,"--and', ['"', "deserve", ",", '"', "--", "and"]),
|
||||
("exception;--exclusive", ["exception", ";", "--", "exclusive"]),
|
||||
("day.--Is", ["day", ".", "--", "Is"]),
|
||||
("refinement:--just", ["refinement", ":", "--", "just"]),
|
||||
("memories?--To", ["memories", "?", "--", "To"]),
|
||||
("Useful.=--Therefore", ["Useful", ".", "=", "--", "Therefore"]),
|
||||
("=Hope.=--Pandora", ["=", "Hope", ".", "=", "--", "Pandora"])])
|
||||
('"deserve,"--and', ['"', "deserve", ',"--', "and"]),
|
||||
("exception;--exclusive", ["exception", ";--", "exclusive"]),
|
||||
("day.--Is", ["day", ".--", "Is"]),
|
||||
("refinement:--just", ["refinement", ":--", "just"]),
|
||||
("memories?--To", ["memories", "?--", "To"]),
|
||||
("Useful.=--Therefore", ["Useful", ".=--", "Therefore"]),
|
||||
("=Hope.=--Pandora", ["=", "Hope", ".=--", "Pandora"])])
|
||||
def test_issue801(en_tokenizer, text, tokens):
|
||||
"""Test that special characters + hyphens are split correctly."""
|
||||
doc = en_tokenizer(text)
|
||||
|
|
Loading…
Reference in New Issue
Block a user