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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user