-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functional test for spelling checker
- Loading branch information
1 parent
c6022aa
commit 4c287ba
Showing
6 changed files
with
72 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
aweirdallowedword |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"""Functional test for speling.""" # [wrong-spelling-in-docstring, wrong-spelling-in-comment] | ||
|
||
# mispeled text # [wrong-spelling-in-comment] | ||
|
||
|
||
def function_name(): | ||
"""mispeled text.""" # [wrong-spelling-in-docstring, wrong-spelling-in-comment] | ||
|
||
|
||
def func(): | ||
"""aweirdallowedword.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This test will be skipped if there is no en_GB dictionary installed | ||
|
||
[SPELLING] | ||
spelling-dict=en_GB | ||
spelling-private-dict-file=tests/functional/s/spelling/.test_spelling_dict.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
wrong-spelling-in-comment:1:0:None:None::"Wrong spelling of a word 'docstring' in a comment: | ||
# [wrong-spelling-in-docstring, wrong-spelling-in-comment] | ||
^^^^^^^^^ | ||
Did you mean: ''doc string' or 'doc-string' or 'doctoring' or 'doctrine''?":UNDEFINED | ||
wrong-spelling-in-docstring:1:0:None:None::"Wrong spelling of a word 'speling' in a docstring: | ||
Functional test for speling. | ||
^^^^^^^ | ||
Did you mean: ''spelling' or 'spieling' or 'sapling' or 'spewing''?":UNDEFINED | ||
wrong-spelling-in-comment:3:0:None:None::"Wrong spelling of a word 'mispeled' in a comment: | ||
# mispeled text # [wrong-spelling-in-comment] | ||
^^^^^^^^ | ||
Did you mean: ''misspelled' or 'misapplied' or 'misled' or 'dispelled''?":UNDEFINED | ||
wrong-spelling-in-comment:7:0:None:None::"Wrong spelling of a word 'docstring' in a comment: | ||
# [wrong-spelling-in-docstring, wrong-spelling-in-comment] | ||
^^^^^^^^^ | ||
Did you mean: ''doc string' or 'doc-string' or 'doctoring' or 'doctrine''?":UNDEFINED | ||
wrong-spelling-in-docstring:7:0:None:None::"Wrong spelling of a word 'mispeled' in a docstring: | ||
mispeled text. | ||
^^^^^^^^ | ||
Did you mean: ''misspelled' or 'misapplied' or 'misled' or 'dispelled''?":UNDEFINED |