Add test for currently failing span.as_doc case

This commit is contained in:
ines 2017-10-24 15:28:05 +02:00
parent 4ef81a9ebc
commit 090aed940a

View File

@ -117,3 +117,9 @@ def test_span_to_array(doc):
assert arr[0, 0] == span[0].orth
assert arr[0, 1] == len(span[0])
@pytest.mark.xfail
def test_span_as_doc(doc):
span = doc[4:10]
span_doc = span.as_doc()
assert span.text == span_doc.text