Open kartamyshev opened 4 years ago
describe('reverseArrayInPlace()', () => { const arr = [1, 2, 3, 4, 5]; it('reverses an array', () => { const actual = reverseArrayInPlace(arr); const expected = [5, 4, 3, 2, 1]; expect(actual).toEqual(expected); }); it('reverses an array back', () => { const actual = reverseArrayInPlace(arr); const expected = [1, 2, 3, 4, 5]; expect(actual).toEqual(expected); }); });