Fix equality check in test

This commit is contained in:
Matthew Honnibal 2017-10-16 19:50:35 +02:00
parent 2bc06e4b22
commit 4174477161

View File

@ -57,9 +57,9 @@ def test_parser_parse_navigate_consistency(en_tokenizer, text, heads):
doc = get_doc(tokens.vocab, [t.text for t in tokens], heads=heads)
for head in doc:
for child in head.lefts:
assert child.head is head
assert child.head == head
for child in head.rights:
assert child.head is head
assert child.head == head
def test_parser_parse_navigate_child_consistency(en_tokenizer, text, heads):