Group tests in a describe

This commit is contained in:
Charlie Moore
2021-10-05 17:23:36 -04:00
parent eaa8dc64a7
commit 6bba9da118

View File

@ -1,5 +1,6 @@
import { combSort } from '../CombSort'
describe('combSort function', () => {
it('should correctly sort an input list that is sorted backwards', () => {
const array = [5, 4, 3, 2, 1]
expect(combSort(array)).toEqual([1, 2, 3, 4, 5])
@ -65,3 +66,4 @@ describe('Variations of input array elements', () => {
expect(combSort([4, 3, 4, 2, 1, 2])).toEqual([1, 2, 2, 3, 4, 4])
})
})
})