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