Skip to content

Commit 412b43b

Browse files
committed
test: Update spellchecking test
The output for "tihs" for enchant english dictionary has changed so this patch makes sure that this test continue working, just checking for the correct word to appear in the list.
1 parent d0dcc4c commit 412b43b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_spellchecking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_spellchecking():
5151
result = spell.spell_check(text, 'Description({}):')
5252
assert len(result) == 2
5353
assert result['tihs'].startswith('Description(en_US): tihs -> ')
54-
assert get_suggestions(result['tihs']) == ['hits', 'this', 'ties']
54+
assert 'this' in get_suggestions(result['tihs'])
5555

5656
# different language, one typo
5757
text = 'Příčerně žluťoučký kůň'

0 commit comments

Comments
 (0)