We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.sort()
1 parent fc19279 commit ca2eee9Copy full SHA for ca2eee9
16_permutations/permutations.spec.js
@@ -2,11 +2,11 @@ const permutations = require("./permutations");
2
3
describe("permutations", () => {
4
test("1 possible permutation for a set containing 0 numbers", () => {
5
- expect(permutations([]).sort()).toEqual([[]].sort());
+ expect(permutations([])).toEqual([[]]);
6
});
7
8
test.skip("1 possible permutation for a set containing 1 number", () => {
9
- expect(permutations([1]).sort()).toEqual([[1]].sort());
+ expect(permutations([1])).toEqual([[1]]);
10
11
12
test.skip("2 possible permutations for a set containing 2 numbers", () => {
0 commit comments