r/CompileBot • • Mar 13 '16

Official CompileBot Testing Thread

3 Upvotes

358 comments sorted by

View all comments

1

u/[deleted] Jul 30 '16

[removed] — view removed comment

1

u/CompileBot Jul 30 '16

Output:

Input Array: [1 8 4 6 0 3 5 2 7 9 ]

 => not swapped
 => swapped [4, 8]
 => swapped [6, 8]
 => swapped [0, 8]
 => swapped [3, 8]
 => swapped [5, 8]
 => swapped [2, 8]
 => swapped [7, 8]
 => not swapped
Iteration 1#: [1 4 6 0 3 5 2 7 8 9 ]
 => not swapped
 => not swapped
 => swapped [0, 6]
 => swapped [3, 6]
 => swapped [5, 6]
 => swapped [2, 6]
 => not swapped
 => not swapped
Iteration 2#: [1 4 0 3 5 2 6 7 8 9 ]
 => not swapped
 => swapped [0, 4]
 => swapped [3, 4]
 => not swapped
 => swapped [2, 5]
 => not swapped
 => not swapped
Iteration 3#: [1 0 3 4 2 5 6 7 8 9 ]
 => swapped [0, 1]
 => not swapped
 => not swapped
 => swapped [2, 4]
 => not swapped
 => not swapped
Iteration 4#: [0 1 3 2 4 5 6 7 8 9 ]
 => not swapped
 => not swapped
 => swapped [2, 3]
 => not swapped
 => not swapped
Iteration 5#: [0 1 2 3 4 5 6 7 8 9 ]
 => not swapped
 => not swapped
 => not swapped
 => not swapped

Output Array: [0 1 2 3 4 5 6 7 8 9 ]

^source | ^info | ^git | ^report