Initial Commit

This commit is contained in:
2024-11-27 10:10:41 +01:00
commit 3cb015b230
22 changed files with 519 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Template" type="BunRunConfiguration">
<option name="program" value="template/run.ts" />
<option name="workingDirectory" value="$PROJECT_DIR$" />
<method v="2" />
</configuration>
</component>
+17
View File
@@ -0,0 +1,17 @@
import { describe, expect, it } from 'bun:test';
import { solveFirst, solveSecond } from './index.ts';
describe('20xx-xx', () => {
it('first', () => {
// TODO: add first input
const testInput = ``;
// TODO: add first solution
expect(solveFirst(testInput)).toBe(0);
});
it('second', () => {
// TODO: add second input
const testInput = ``;
// TODO: add second solution
expect(solveSecond(testInput)).toBe(0);
});
});
+11
View File
@@ -0,0 +1,11 @@
export function solveFirst(input: string): number {
// TODO: add code
return 0;
}
export function solveSecond(input: string): number {
// TODO: add code
return 0;
}
View File
+12
View File
@@ -0,0 +1,12 @@
import { join } from 'path';
import { solveFirst, solveSecond } from './index.ts';
const input = await Bun.file(join(__dirname, 'input.txt')).text();
const firstAnswer = solveFirst(input);
console.log(firstAnswer);
const secondAnswer = solveSecond(input);
console.log(secondAnswer);