Example #1
0
 def test_should_get_tail_to_list(self):
     self.assertEqual(tail([1, 2, 3, 4]), [2, 3, 4])
Example #2
0
 def test_should_get_tail_to_iterable(self):
     result = tail(iter([1, 2, 3, 4]))
     self.assertEqual(result, [2, 3, 4])
Example #3
0
 def test_should_reaturn_blank_sequece(self):
     self.assertEqual(tail([]), [])