-
-
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
1188340
commit cafdc37
Showing
4 changed files
with
42 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
"""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] |
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,2 @@ | ||
[SPELLING] | ||
spelling-dict=en_US |
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 'stringing''?":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: ''spieling' or 'spelling' or 'spewing' or 'peeling''?":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 'dispelled' or 'misspell' or 'misled''?":UNDEFINED | ||
wrong-spelling-in-comment:6: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 'stringing''?":UNDEFINED | ||
wrong-spelling-in-docstring:6:0:None:None::"Wrong spelling of a word 'mispeled' in a docstring: | ||
mispeled text. | ||
^^^^^^^^ | ||
Did you mean: ''misspelled' or 'dispelled' or 'misspell' or 'misled''?":UNDEFINED |