mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Merged revisions 75070 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r75070 | ezio.melotti | 2009-09-26 14:20:53 +0300 (Sat, 26 Sep 2009) | 1 line #7000: document "sep" in capwords. Add a few tests ........
This commit is contained in:
parent
2c6a949e43
commit
a40bdda937
3 changed files with 16 additions and 9 deletions
|
@ -22,6 +22,9 @@ class ModuleTest(unittest.TestCase):
|
|||
self.assertEqual(string.capwords('ABC DEF GHI'), 'Abc Def Ghi')
|
||||
self.assertEqual(string.capwords('ABC-DEF-GHI', '-'), 'Abc-Def-Ghi')
|
||||
self.assertEqual(string.capwords('ABC-def DEF-ghi GHI'), 'Abc-def Def-ghi Ghi')
|
||||
self.assertEqual(string.capwords(' aBc DeF '), 'Abc Def')
|
||||
self.assertEqual(string.capwords('\taBc\tDeF\t'), 'Abc Def')
|
||||
self.assertEqual(string.capwords('\taBc\tDeF\t', '\t'), '\tAbc\tDef\t')
|
||||
|
||||
def test_formatter(self):
|
||||
fmt = string.Formatter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue