Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am ryosua on github.
* I am ryosua (https://keybase.io/ryosua) on keybase.
* I have a public key ASCqZkrJ9BmXMBfHFxTsQqkr9DJNisc5Vt4_Q1DEsOpsmwo
To claim this, I am signing this object:
@ryosua
ryosua / quickSort.test.js
Created January 31, 2019 20:30
Tests for quicksort.
import quickSort from './quickSort'
describe('quickSort', () => {
test('Sorts a list 1', () => {
const test1 = [7, 4, 8, 0, 9, 8, 34, 6, 7]
const expectedResult1 = [0, 4, 6, 7, 7, 8, 8, 9, 34]
expect(quickSort(test1)).toEqual(expectedResult1)
})
test('Sorts a list 2', () => {