Skip to content

Commit d28ae8b

Browse files
merge: Update test case for bubbleSort ( with code style is fixed) (TheAlgorithms#1020)
* Update test case for bubbleSort * re-update test case for bubble sort * re-update test case for bubbleSort
1 parent 360c447 commit d28ae8b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎Sorts/test/BubbleSort.test.js‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ describe('bubbleSort', () =>{
77
expect(bubbleSort([1,2,3])).toEqual([1,2,3])
88
expect(bubbleSort([5,6,7,8,1,2,12,14])).toEqual([1,2,5,6,7,8,12,14])
99
expect(bubbleSort([5,6,7,8,9,4])).toEqual([4,5,6,7,8,9])
10+
expect(bubbleSort([20,30,40])).toEqual([20,30,40])
11+
expect(bubbleSort([2,1,3])).toEqual([1,2,3])
12+
expect(bubbleSort([10,15,16,100])).toEqual([10,15,16,100])
13+
expect(bubbleSort([10,9,11])).toEqual([9,10,11])
14+
expect(bubbleSort([10,9,12])).toEqual([9,10,12])
15+
expect(bubbleSort([3,2,1])).toEqual([1,2,3])
16+
expect(bubbleSort([10,9,8])).toEqual([8,9,10])
1017
})
1118
})
1219

0 commit comments

Comments
(0)