Esempio n. 1
0
 def test_sort_and_count_inv_5(self):
     self.assertEqual(sort_and_count_inv([6, 5, 4, 3, 2, 1]),
                      (15, [1, 2, 3, 4, 5, 6]))
Esempio n. 2
0
 def test_sort_and_count_inv_3(self):
     self.assertEqual(sort_and_count_inv([1, 2]), (0, [1, 2]))
Esempio n. 3
0
 def test_sort_and_count_inv_4(self):
     self.assertEqual(sort_and_count_inv([2, 1]), (1, [1, 2]))
Esempio n. 4
0
 def test_sort_and_count_inv_1(self):
     self.assertEqual(sort_and_count_inv([]), (0, []))