Esempio n. 1
0
 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])
Esempio n. 2
0
 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])