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:
thanhphuonghdhh
2022-05-23 23:57:11 +07:00
committed by GitHub
parent 360c447e72
commit d28ae8b1f7

View File

@ -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])
})
})