Add test for currently failing span.as_doc case
@@ -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
