Skip to content

Commit 35ed31e

Browse files
committed
Update test.ts
1 parent 47c02cf commit 35ed31e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

brace-expansion/test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
import { assertEquals } from "https://deno.land/[email protected]/testing/asserts.ts";
22
import expand from "./index.ts";
33
Deno.test("brace-expansion", () => {
4-
const inputs = ["{a,b}c{d,e}f", "abcd", "abc{x,y,m,n,p,q}"];
4+
const inputs = [
5+
"{a,b}c{d,e}f",
6+
"abcd",
7+
"abc{x,y,m,n,p,q}",
8+
"{x,y,m,n,p,q}",
9+
];
510
const outputs = [
611
["acdf", "acef", "bcdf", "bcef"],
712
["abcd"],
813
["abcm", "abcn", "abcp", "abcq", "abcx", "abcy"],
14+
["m", "n", "p", "q", "x", "y"],
915
];
1016
assertEquals(inputs.map(expand), outputs);
1117
});

0 commit comments

Comments
 (0)