def test_bubble_sort(self): self.result = bubble_sort.sort(self.array) self.assertEqual(self.result, self.sorted_array) self.alphaResult = bubble_sort.sort(self.alphaArray) self.assertEqual(self.alphaResult, self.sorted_alpha_array)
""" list = [ 1, 2, 3, 6, 4, 5, 7, 0, 12, 24, 5, 6, 37, 43, 6, 432, 65, 987, ] s = bubble_sort.sort(list) print(s) code = bubble_sort.get_code() print(code) time = bubble_sort.time_complexities() print(time)
def pyg(): ar = [12, 4, 3, 5, 12, 14, 14, 13, 1, 17, 19, 15] print(bubble_sort.sort(ar)) # print(bubble_sort.time_complexities()) print(bubble_sort.get_code())
def sort(arr): return bubble_sort.sort(arr)