Skip to content

Commit bbb5956

Browse files
authored
Prepare for 2021
1 parent dc1a92d commit bbb5956

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

src/2021/day00/input

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test

src/2021/day00/part1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const part1 = (input: string) => {
2+
return input;
3+
};

src/2021/day00/test.spec.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import {readInput} from '../../utils';
2+
3+
import {part1} from './part1';
4+
5+
describe('Advent of Code 2021 - Day x', () => {
6+
let input: string;
7+
beforeAll(async () => {
8+
input = await readInput(__dirname + '/input');
9+
});
10+
11+
describe('part 1', () => {
12+
it('should output x ', () => {
13+
const test_input = 'test';
14+
expect(part1(test_input)).toBe('test');
15+
});
16+
17+
it('should output correct from input', () => {
18+
expect(part1(input)).toBe('test');
19+
});
20+
});
21+
});

src/2021/day01/input

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test

0 commit comments

Comments
 (0)