示例#1
0
 def testBoth2(self):
   studentCompress = hw.compress(('1'*17 + '0'*15)*2)
   studentAnswer = hw.uncompress(studentCompress)
   self.assertEqual(studentAnswer,('1'*17 + '0'*15)*2)
示例#2
0
 def testBoth1(self):
   studentCompress = hw.compress('1'*63 + '0')
   studentAnswer = hw.uncompress(studentCompress)
   self.assertEqual(studentAnswer,'1'*63 + '0')