test: sample fixture course

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas Winther
2026-10-30 02:50:00 +01:00
co-authored by Claude Opus 5.5
parent 7e7ce30535
commit 7a68800f6f
13 changed files with 97 additions and 0 deletions
@@ -0,0 +1,3 @@
export function add(a, b) {
return a + b;
}
@@ -0,0 +1,3 @@
export function add(a, b) {
return a - b;
}
@@ -0,0 +1,4 @@
export const tests = [
{ name: "adds 2 and 3", run: (mod, assert) => assert.equal(mod.add(2, 3), 5) },
{ name: "adds -1 and 1", run: (mod, assert) => assert.equal(mod.add(-1, 1), 0) },
];