mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2026-03-13 15:21:15 +08:00
Complying with JavaScript Standard Style (npx standard --fix).
This commit is contained in:
@@ -3,12 +3,12 @@ import { permutations } from '../GeneratePermutations'
|
||||
describe('Permutations', () => {
|
||||
it('Permutations of [1, 2, 3]', () => {
|
||||
expect(permutations([1, 2, 3])).toEqual([
|
||||
[ 1, 2, 3 ],
|
||||
[ 1, 3, 2 ],
|
||||
[ 2, 1, 3 ],
|
||||
[ 2, 3, 1 ],
|
||||
[ 3, 1, 2 ],
|
||||
[ 3, 2, 1 ]
|
||||
[1, 2, 3],
|
||||
[1, 3, 2],
|
||||
[2, 1, 3],
|
||||
[2, 3, 1],
|
||||
[3, 1, 2],
|
||||
[3, 2, 1]
|
||||
])
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user