Beispiel #1
0
 def test_1024(self):
     ttf = [random.randrange(100) for i in range(1024)]
     self.assertEqual(merge_sort_python(ttf), sorted(ttf))
Beispiel #2
0
 def test_1023(self):
     ttt = [random.randrange(100) for i in range(1023)]
     self.assertEqual(merge_sort_python(ttt), sorted(ttt))
Beispiel #3
0
 def test_15(self):
     ft = [random.randrange(100) for i in range(15)]
     self.assertEqual(merge_sort_python(ft), sorted(ft))
Beispiel #4
0
 def test_100(self):
     hunnid = [random.randrange(100) for i in range(100)]
     self.assertEqual(merge_sort_python(hunnid), sorted(hunnid))
Beispiel #5
0
 def test_three_aaa(self):
     abc = [1, 1, 1]
     self.assertEqual(merge_sort_python(abc), sorted(abc))
Beispiel #6
0
 def test_17(self):
     st = [random.randrange(100) for i in range(17)]
     self.assertEqual(merge_sort_python(st), sorted(st))
Beispiel #7
0
 def test_three_bac(self):
     abc = [2, 1, 3]
     self.assertEqual(merge_sort_python(abc), sorted(abc))
Beispiel #8
0
 def test_three_cab(self):
     abc = [3, 1, 2]
     self.assertEqual(merge_sort_python(abc), sorted(abc))
Beispiel #9
0
 def test_two_same(self):
     two = [1, 1]
     self.assertEqual(merge_sort_python(two), sorted(two))
Beispiel #10
0
 def test_two_out_order(self):
     two = [9, 1]
     self.assertEqual(merge_sort_python(two), sorted(two))
Beispiel #11
0
 def test_two_in_order(self):
     two = [1, 9]
     self.assertEqual(merge_sort_python(two), sorted(two))
Beispiel #12
0
 def test_one(self):
     one = [1]
     self.assertEqual(merge_sort_python(one), one)
Beispiel #13
0
 def test_empty(self):
     empty = []
     self.assertEqual(merge_sort_python(empty), empty)