예제 #1
0
 def test_insertion_sort_with_empty_list(self):
     Sorting.selection_sort(self.empty_list)
     self.assertListEqual([], self.empty_list)
예제 #2
0
 def test_insertion_sort_with_empty_list(self):
     Sorting.selection_sort(self.empty_list)
     self.assertListEqual([], self.empty_list)
예제 #3
0
 def test_selection_sort(self):
     Sorting.selection_sort(self.seq)
     self.assertListEqual(self.sorted_seq, self.seq)
예제 #4
0
 def test_selection_sort(self):
     Sorting.selection_sort(self.seq)
     self.assertListEqual(self.sorted_seq, self.seq)