Skip to content

Commit

Permalink
Add tests for 'a' vs. 'an' rule
Browse files Browse the repository at this point in the history
Closes #31.
  • Loading branch information
laraross authored and suchow committed Sep 28, 2015
1 parent df5f70f commit 8b5252d
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions tests/test_mau_a_vs_an.py
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."""
)

0 comments on commit 8b5252d

Please sign in to comment.