-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #31.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
from check import Check | ||
from proselint.checks import mau_a_vs_an as chk | ||
|
||
|
||
class TestCheck(Check): | ||
|
||
__test__ = True | ||
|
||
@property | ||
def this_check(self): | ||
return chk | ||
|
||
def test_clean(self): | ||
assert self.check( | ||
"""An apple a day keeps the doctor away.""" | ||
) | ||
|
||
def test_a_apple(self): | ||
assert not self.check( | ||
"""A apple a day keeps the doctor away.""" | ||
) | ||
|
||
def test_an_day(self): | ||
assert not self.check( | ||
"""An apple an day keeps the doctor away.""" | ||
) | ||
|
||
def test_linebreak(self): | ||
assert not self.check( | ||
"""An apple an\nday keeps the doctor away.""" | ||
) | ||
|
||
def test_mid_word(self): | ||
assert self.check( | ||
"""The Epicurean garden.""" | ||
) |