Пример #1
0
 def test_decode_unicode(self):
     self.assertMultiLineEqual('⏰⚽⚽⚽⭐⭐⏰', decode('⏰3⚽2⭐⏰'))
Пример #2
0
 def test_decode_with_single(self):
     self.assertMultiLineEqual(
         'WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWB',
         decode('12WB12W3B24WB'))
Пример #3
0
 def test_combination(self):
     self.assertMultiLineEqual('zzz ZZ  zZ', decode(encode('zzz ZZ  zZ')))
Пример #4
0
 def test_decode(self):
     self.assertMultiLineEqual('AABBBCCCC', decode('2A3B4C'))