Skip to content

Commit eec161c

Browse files
committed
more test for dictionary
1 parent fc4345a commit eec161c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dictionary/test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { assertMatch } from "@std/assert/match";
2+
import { dictionary } from "./dictionary.ts";
3+
4+
Deno.test("definition source has leading space", () => {
5+
for (const [word, { src }] of dictionary) {
6+
assertMatch(src, /^\s/, `Error at ${word}`);
7+
}
8+
});

0 commit comments

Comments
 (0)