Пример #1
0
 def test_composition4(self):
     inp = ['wink', 'double blink', 'jump']
     self.assertEqual(inp, handshake(code(inp)))
Пример #2
0
 def test_composition2(self):
     self.assertEqual('1', code(handshake(1)))
Пример #3
0
 def test_composition3(self):
     self.assertEqual('111', code(handshake('111')))
Пример #4
0
 def test_code3(self):
     self.assertEqual('11010', code(['jump', 'double blink']))
Пример #5
0
 def test_composition1(self):
     self.assertEqual('11011', code(handshake(27)))
Пример #6
0
 def test_code1(self):
     self.assertEqual('1100', code(['close your eyes', 'jump']))
Пример #7
0
 def test_code2(self):
     self.assertEqual('11', code(['wink', 'double blink']))
 def test_composition4(self):
     inp = ['wink', 'double blink', 'jump']
     self.assertEqual(inp, handshake(code(inp)))
Пример #9
0
 def test_unknown_action(self):
     self.assertEqual('0', code(['wink', 'sneeze']))
 def test_composition2(self):
     self.assertEqual('1', code(handshake(1)))
 def test_composition3(self):
     self.assertEqual('111', code(handshake('111')))
 def test_composition1(self):
     self.assertEqual('11011', code(handshake(27)))
 def test_code3(self):
     self.assertEqual('11010', code(['jump', 'double blink']))
 def test_code2(self):
     self.assertEqual('11', code(['wink', 'double blink']))
 def test_code1(self):
     self.assertEqual('1100', code(['close your eyes', 'jump']))
 def test_unknown_action(self):
     self.assertEqual('0', code(['wink', 'sneeze']))