Test: Added and removed a test

- Added a test to see if long lines are properly hyphenated.
- Removed a test for hyphenation on comma, which is not implemented.
This commit is contained in:
Paul Beckingham 2015-07-11 15:30:42 -04:00
parent 2a19247ad1
commit cb82946ad5

View file

@ -49,11 +49,11 @@ class TestHyphenation(TestCase):
code, out, err = self.t("ls") code, out, err = self.t("ls")
self.assertIn("1 AAAAAAAAAA\n", out) self.assertIn("1 AAAAAAAAAA\n", out)
def test_hyphenation_on_comma(self): def test_hyphenation(self):
"""Split on comma instead of hyphenating""" """Verify hyphenation in the absence of white space"""
self.t("add AAAAAAAAAA,BBBBBBBBBB") self.t("add AAAAAAAAAABBBBBBBBBBCCCCCCCCCC")
code, out, err = self.t("ls") code, out, err = self.t("ls")
self.assertIn("1 AAAAAAAAAA,\n", out) self.assertIn("1 AAAAAAAAAABBBB-\n", out)
if __name__ == "__main__": if __name__ == "__main__":
from simpletap import TAPTestRunner from simpletap import TAPTestRunner