예제 #1
0
 def test_cycle_sort(self):
     self.assertTrue(is_sorted(cycle_sort([1, 3, 2, 5, 65, 23, 57, 1232])))
예제 #2
0
 def test_cycle_sort(self):
     self.assertEqual([1, 5, 23, 57, 65, 1232],
                      cycle_sort([1, 5, 65, 23, 57, 1232]))
예제 #3
0
 def test_cycle_sort(self):
     self.assertEqual([1, 5, 23, 57, 65, 1232],
                      cycle_sort([1, 5, 65, 23, 57, 1232]))