diff --git a/spacy/tests/README.md b/spacy/tests/README.md index dfcd6b21b..f3c96a39e 100644 --- a/spacy/tests/README.md +++ b/spacy/tests/README.md @@ -10,16 +10,12 @@ Tests for spaCy modules and classes live in their own directories of the same na ## Table of contents -- [spaCy tests](#spacy-tests) - - [Table of contents](#table-of-contents) - - [Running the tests](#running-the-tests) - - [Dos and don'ts](#dos-and-donts) - - [Parameters](#parameters) - - [Fixtures](#fixtures) - - [Helpers and utilities](#helpers-and-utilities) - - [Constructing a `Doc` object manually](#constructing-a-doc-object-manually) - - [Other utilities](#other-utilities) - - [Contributing to the tests](#contributing-to-the-tests) +1. [Running the tests](#running-the-tests) +2. [Dos and don'ts](#dos-and-donts) +3. [Parameters](#parameters) +4. [Fixtures](#fixtures) +5. [Helpers and utilities](#helpers-and-utilities) +6. [Contributing to the tests](#contributing-to-the-tests) ## Running the tests diff --git a/spacy/tests/doc/test_span.py b/spacy/tests/doc/test_span.py index 6bffb51de..21d247b74 100644 --- a/spacy/tests/doc/test_span.py +++ b/spacy/tests/doc/test_span.py @@ -304,6 +304,7 @@ def test_span_similarity_match(): assert span1.similarity(doc) == 0.0 assert span1[:1].similarity(doc.vocab["a"]) == 1.0 + def test_spans_are_hashable(en_tokenizer): """Test spans can be hashed.""" text = "good stuff bad stuff"