コード例 #1
0
ファイル: test.py プロジェクト: UMD-CS-STICs/389Lspring18
 def test_repeated_chars(self):
     self.assertEqual('a1b4c2d1e3',
                      functions.string_compress('abbbbccdeee'))
コード例 #2
0
ファイル: test.py プロジェクト: UMD-CS-STICs/389Lspring18
 def test_length_one(self):
     self.assertEqual('a1', functions.string_compress('a'))
コード例 #3
0
ファイル: test.py プロジェクト: UMD-CS-STICs/389Lspring18
 def test_multiple_chars(self):
     self.assertEqual('a1b1c1d1', functions.string_compress('abcd'))
コード例 #4
0
ファイル: test.py プロジェクト: UMD-CS-STICs/389Lspring18
 def test_empty(self):
     self.assertEqual('', functions.string_compress(''))