Fix formatting

This commit is contained in:
thomashacker 2022-11-17 12:54:43 +01:00
parent bc72e0e94c
commit 4b4e9115b5
2 changed files with 7 additions and 10 deletions

View File

@ -10,16 +10,12 @@ Tests for spaCy modules and classes live in their own directories of the same na
## Table of contents ## Table of contents
- [spaCy tests](#spacy-tests) 1. [Running the tests](#running-the-tests)
- [Table of contents](#table-of-contents) 2. [Dos and don'ts](#dos-and-donts)
- [Running the tests](#running-the-tests) 3. [Parameters](#parameters)
- [Dos and don'ts](#dos-and-donts) 4. [Fixtures](#fixtures)
- [Parameters](#parameters) 5. [Helpers and utilities](#helpers-and-utilities)
- [Fixtures](#fixtures) 6. [Contributing to the tests](#contributing-to-the-tests)
- [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)
## Running the tests ## Running the tests

View File

@ -304,6 +304,7 @@ def test_span_similarity_match():
assert span1.similarity(doc) == 0.0 assert span1.similarity(doc) == 0.0
assert span1[:1].similarity(doc.vocab["a"]) == 1.0 assert span1[:1].similarity(doc.vocab["a"]) == 1.0
def test_spans_are_hashable(en_tokenizer): def test_spans_are_hashable(en_tokenizer):
"""Test spans can be hashed.""" """Test spans can be hashed."""
text = "good stuff bad stuff" text = "good stuff bad stuff"