Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ppizarror committed Jan 15, 2024
1 parent 1511e89 commit 012092b
Show file tree
Hide file tree
Showing 7 changed files with 486 additions and 652 deletions.
642 changes: 309 additions & 333 deletions test/data/educalingo_en_good.txt

Large diffs are not rendered by default.

87 changes: 44 additions & 43 deletions test/data/synonyms_en_bad.txt

Large diffs are not rendered by default.

87 changes: 44 additions & 43 deletions test/data/synonyms_en_good.txt

Large diffs are not rendered by default.

87 changes: 44 additions & 43 deletions test/data/synonyms_en_not-bad.txt

Large diffs are not rendered by default.

226 changes: 40 additions & 186 deletions test/data/thesaurus-for-this-reason.txt

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions test/data/wordnet_en_good.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<title>WordNet Search - 3.1</title>
Expand Down
4 changes: 2 additions & 2 deletions test/test_dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ def test_synonym(self) -> None:
# Test thesaurus
self.assertEqual(d.synonym('en', 'for this reason', DICT_THESAURUS),
['accordingly', 'so', 'then', 'thus', 'consequently', 'hence', 'thence', 'and so',
'ergo', 'for', 'forasmuch as', 'inasmuch as', 'in consequence', 'in that event',
'ergo', 'for', 'forasmuch as', 'in consequence', 'in that event', 'inasmuch as',
'on account of', 'on the grounds', 'since', 'therefrom', 'thereupon', 'to that end', 'whence',
'wherefore'])
'wherefore', 'therefore', 'on that account'])

# Synonyms
syn = ['able', 'acceptable', 'accomplished', 'accurate', 'adept', 'adequate', 'admirable', 'adroit',
Expand Down

0 comments on commit 012092b

Please sign in to comment.