From d98778d86d46f4ab18673e31c51cfe8648bf70bf Mon Sep 17 00:00:00 2001 From: Adam Piontek Date: Wed, 7 Sep 2022 09:49:19 -0400 Subject: [PATCH] lint & format tests --- test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test.js b/test.js index 7f61e19..7d3dc8e 100644 --- a/test.js +++ b/test.js @@ -7,8 +7,8 @@ const solvable_games = [ ]; const partial_games = [ - "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2D KH 8C 6S 6H 2C 8H JC 9C 4D AD TH 2S AS QH 5H AH 3H 2H 4S 6D 3C TS JD 9H KD AC JS 9S 4H 4C 5S 5D 5C" -] + "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2D KH 8C 6S 6H 2C 8H JC 9C 4D AD TH 2S AS QH 5H AH 3H 2H 4S 6D 3C TS JD 9H KD AC JS 9S 4H 4C 5S 5D 5C", +]; it("should solve known games", () => { assert.equal(true, true); @@ -22,7 +22,7 @@ it("should solve known games", () => { it("should solve partial games", () => { assert.equal(true, true); partial_games.forEach(function (i) { - const array = i.split(" ").map(x => x === "0" ? 0 : x); + const array = i.split(" ").map((x) => (x === "0" ? 0 : x)); const result = solver.solve(array.slice(0, 28), array.slice(28, 52), 0, []); assert.equal(result[0], true); });