test: sample fixture course
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
7e7ce30535
commit
7a68800f6f
@@ -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) },
|
||||
];
|
||||
Reference in New Issue
Block a user