Skip to content

Commit 7cd7b25

Browse files
committed
📝 Update
1 parent 46d55ff commit 7cd7b25

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ I solved the exercises using [TypeScript](https://typescriptlang.org) and
2020
[Solution](https://github.com/UltiRequiem/eloquent-javascript/blob/main/src/language/fizzbuzz.ts) -
2121
[Test](https://github.com/UltiRequiem/eloquent-javascript/blob/main/src/language/fizzbuzz.test.ts)
2222

23+
> Returns the result as an array instead of printing it to the console for
24+
> reusability 🧐
25+
2326
- [Chessboard](https://eloquentjavascript.net/02_program_structure.html#i_swb9JBtSQQ) -
2427
[Solution](https://github.com/UltiRequiem/eloquent-javascript/blob/main/src/language/chessboard.ts) -
2528
[Test](https://github.com/UltiRequiem/eloquent-javascript/blob/main/src/language/chessboard.test.ts)

src/language/chessboard.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { chessboard } from "./chessboard.ts";
2+
import { assertEquals } from "../../deps.ts";
3+
4+
Deno.test("[chessboard]", () => {
5+
assertEquals(chessboard().length, 71);
6+
});

0 commit comments

Comments
 (0)