Beispiel #1
0
def dBubbleSort(x):
    bubbleSort = BubbleSort();
    bubbleSort.sort(x)  
Beispiel #2
0
 def testBubbleSort(self):
     x = [-20,-45,995,912,126,1246,624]
     bubbleSort = BubbleSort();
     bubbleSort.sort(x)
     self.assertEqual(x,[-45.0, -20.0, 126, 624, 912, 995, 1246])