From afc6365388772ebd05eee6362c73bc332b021e66 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Thu, 2 Feb 2017 16:23:05 +0100 Subject: [PATCH] Update regression test for #801 to match current expected behaviour --- spacy/tests/regression/test_issue801.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/spacy/tests/regression/test_issue801.py b/spacy/tests/regression/test_issue801.py index df765830a..3d83e707b 100644 --- a/spacy/tests/regression/test_issue801.py +++ b/spacy/tests/regression/test_issue801.py @@ -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)