-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.test.ts
More file actions
45 lines (37 loc) · 1.04 KB
/
template.test.ts
File metadata and controls
45 lines (37 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
export const bar = (patterns: string[]) => {};
export const foo = (patterns: string[]) => {};
const processInput = (input: string) => {
return input.split("\n").map((line) => {
return line;
});
};
const baseInput = ``;
const realProblem = ``;
describe("Day n: ", () => {
describe("bar", () => {
it.only("Solves base problem", () => {
const input = processInput(baseInput);
const result = bar(input);
expect(result).toBe(26);
});
it("Solves real problem", () => {
const input = processInput(realProblem);
const result = bar(input);
console.log({ result });
expect(result).toBeGreaterThan(0);
});
});
describe("foo", () => {
it("Solves base problem", () => {
const input = processInput(baseInput);
const result = foo(input);
expect(result).toBe(61229);
});
it("Solves real problem", () => {
const input = processInput(realProblem);
const result = foo(input);
console.log({ result });
expect(result).toBeGreaterThan(0);
});
});
});