Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeray Diaz Diaz committed Feb 10, 2019
1 parent dfcc173 commit 15f93c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lunr/token_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def from_fuzzy_string(cls, string, edit_distance):
)

# deletion, can only do a deletion if we have enough edits
# remaining and if there are characters left to delte in the string
# remaining and if there are characters left to delete in the string
if frame["edits_remaining"] > 0 and len(frame["string"]) > 1:
char = frame["string"][1]
deletion_node = None
Expand Down
4 changes: 2 additions & 2 deletions tests/test_token_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def test_wildcard_zero_or_more_characters(self):

assert {"foo"} == set(z.to_list())

def test_with_fuzzy_string_subtitution(self):
def test_with_fuzzy_string_substitution(self):
x1 = TokenSet.from_string("bar")
x2 = TokenSet.from_string("cur")
x3 = TokenSet.from_string("cat")
Expand Down Expand Up @@ -243,7 +243,7 @@ def test_catastrophic_backtracking_with_leading_characters(self):

assert len(x.intersect(y).to_list()) == 1

def test_leading_atrailing_wildcard_backtracking_intersection(self):
def test_leading_trailing_wildcard_backtracking_intersection(self):
x = TokenSet.from_string("acbaabab")
y = TokenSet.from_string("*ab*")

Expand Down

0 comments on commit 15f93c1

Please sign in to comment.