Exemplo n.º 1
0
 def test_right_arrow_at_non_end(self):
     for i in range(len(self._line) - 1):
         expected = (i + 1, self._line)
         result = right_arrow(i, self._line)
         self.assertEqual(expected, result)
Exemplo n.º 2
0
 def test_right_arrow_at_non_end(self):
     for i in range(len(self._line) - 1):
         expected = (i + 1, self._line)
         result = right_arrow(i, self._line)
         self.assertEqual(expected, result)
Exemplo n.º 3
0
 def test_right_arrow_at_end(self):
     pos = len(self._line)
     expected = (pos, self._line)
     result = right_arrow(pos, self._line)
     self.assertEqual(expected, result)
Exemplo n.º 4
0
 def test_right_arrow_at_end(self):
     pos = len(self._line)
     expected = (pos, self._line)
     result = right_arrow(pos, self._line)
     self.assertEqual(expected, result)