Thefaceofbo

BubbleSort Test (py)

Nov 10th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. from sort import bubbleSort
  2.  
  3. def main():
  4.    x = [7,9,5,3,478,2,6,8,8,22,4,8,9,3,31,4,7,8,66,32,457,8,3,3,5,4,23,8,6,9]
  5.    y = [3,2,1,-1,-6,-25,-89,5,5,5,5,3,8,-7,-1,0]
  6.    z = []
  7.    print(bubbleSort(x)[1])
  8.    print(bubbleSort(y)[1])
  9.    print(bubbleSort(z)[1])
  10.    print(bubbleSort(1)[0])
  11.    return True
  12.  
  13. main()
Advertisement
Add Comment
Please, Sign In to add comment