示例#1
0
 def test0_check_sort(self):
     res = list(sort([1], [2, 3], [4, 5]))
     ass = [1, 2, 3, 4, 5]
     self.assertEqual(res, ass)
示例#2
0
 def test5_check_sort(self):
     res = list(sort([], [], [4]))
     ass = [4]
     self.assertEqual(res, ass)
示例#3
0
 def test3_check_sort(self):
     res = list(sort([1], [1, 1], [1, 5]))
     ass = [1, 1, 1, 1, 5]
     self.assertEqual(res, ass)
示例#4
0
 def test4_check_sort(self):
     res = list(sort([5], [3, 5], [4, 5]))
     ass = [3, 4, 5, 5, 5]
     self.assertEqual(res, ass)
示例#5
0
 def test2_check_sort(self):
     res = list(sort([1000], [3, 2.2], [-1]))
     ass = [-1, 2.2, 3, 1000]
     self.assertEqual(res, ass)