MCPcopy Create free account
hub / github.com/ActiveState/code / _test

Function _test

recipes/Python/134571_Fill_paragraph/recipe-134571.py:72–89  ·  view source on GitHub ↗

Module test case.

(width=78, justify=1)

Source from the content-addressed store, hash-verified

70
71
72def _test(width=78, justify=1):
73 """Module test case."""
74
75 s ="""
76This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.
77This is some text. This is some text. This is some text.
78
79This is some text. This is some text. This is some text.
80This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.
81This is some text. This is some text.
82This is some text.
83
84This is some text.
85This is some text.
86This is some text. This is some text.
87This is some text. This is some text. This is some text.
88"""
89 print fill_paragraphs(s, width, justify)
90
91if __name__ == '__main__':
92 _test()

Callers 1

recipe-134571.pyFile · 0.70

Calls 1

fill_paragraphsFunction · 0.85

Tested by

no test coverage detected