コード例 #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))