mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 00:01:37 +08:00
merge: Update test case for bubbleSort ( with code style is fixed) (#1020)
* Update test case for bubbleSort * re-update test case for bubble sort * re-update test case for bubbleSort
This commit is contained in:
@ -7,6 +7,13 @@ describe('bubbleSort', () => {
|
||||
expect(bubbleSort([1, 2, 3])).toEqual([1, 2, 3])
|
||||
expect(bubbleSort([5, 6, 7, 8, 1, 2, 12, 14])).toEqual([1, 2, 5, 6, 7, 8, 12, 14])
|
||||
expect(bubbleSort([5, 6, 7, 8, 9, 4])).toEqual([4, 5, 6, 7, 8, 9])
|
||||
expect(bubbleSort([20, 30, 40])).toEqual([20, 30, 40])
|
||||
expect(bubbleSort([2, 1, 3])).toEqual([1, 2, 3])
|
||||
expect(bubbleSort([10, 15, 16, 100])).toEqual([10, 15, 16, 100])
|
||||
expect(bubbleSort([10, 9, 11])).toEqual([9, 10, 11])
|
||||
expect(bubbleSort([10, 9, 12])).toEqual([9, 10, 12])
|
||||
expect(bubbleSort([3, 2, 1])).toEqual([1, 2, 3])
|
||||
expect(bubbleSort([10, 9, 8])).toEqual([8, 9, 10])
|
||||
})
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user