Test simple indexing for Span

This commit is contained in:
Yubing (Tom) Dong 2015-10-06 02:08:39 -07:00
parent ef2af20cd3
commit 5cc2f2b01a

View File

@ -57,6 +57,9 @@ def test_getitem(EN):
span = tokens[40:50] span = tokens[40:50]
assert span.start == span.end == 7 and not to_str(span) assert span.start == span.end == 7 and not to_str(span)
span = tokens[1:4]
assert span[0].orth_ == 'it'
@pytest.mark.models @pytest.mark.models
def test_serialize(EN): def test_serialize(EN):