def testBubbleSort(self): # Test that the list is sorted data = [1, 5, 9, 1, 3, 2] Sort.bubbleSort(data) self.assertEqual(data, [1, 1, 2, 3, 5, 9])
def testBubbleSort(self): # Test that the list is sorted data = [1, 5, 9, 1, 3, 2] Sort.bubbleSort(data) self.assertEqual(data, [1, 1, 2, 3, 5, 9])