예제 #1
0
 def test_empty_selectionsort(self):
     self.assertEqual([], selectionsort([]))
예제 #2
0
 def test_char_selectionsort(self):
     self.assertEqual(self.list_char_sorted, selectionsort(self.list_char))
예제 #3
0
 def test_string_selectionsort(self):
     self.assertEqual(self.list_string_sorted, selectionsort(self.list_string))
예제 #4
0
 def test_ascii_selectionsort(self):
     self.assertEqual(self.list_ascii_sorted, selectionsort(self.list_ascii))
예제 #5
0
 def test_url_selectionsort(self):
     self.assertEqual(self.list_url_sorted, selectionsort(self.list_url))
예제 #6
0
 def test_one_selectionsort(self):
     self.assertEqual(['a'], selectionsort(['a']))
예제 #7
0
 def test_one_selectionsort(self):
     self.assertEqual(["a"], selectionsort(["a"]))
예제 #8
0
 def test_empty_selectionsort(self):
     self.assertEqual([], selectionsort([]))
예제 #9
0
 def test_string_selectionsort(self):
     self.assertEqual(self.list_string_sorted,
                      selectionsort(self.list_string))
예제 #10
0
 def test_char_selectionsort(self):
     self.assertEqual(self.list_char_sorted, selectionsort(self.list_char))
예제 #11
0
 def test_url_selectionsort(self):
     self.assertEqual(self.list_url_sorted, selectionsort(self.list_url))
예제 #12
0
 def test_ascii_selectionsort(self):
     self.assertEqual(self.list_ascii_sorted,
                      selectionsort(self.list_ascii))