feat: add simple test file and script

This commit is contained in:
Vibn Agent Runner
2026-02-26 23:29:40 +00:00
parent f969fb3b6b
commit 24b18e98bd
2 changed files with 14 additions and 1 deletions

12
src/test.ts Normal file
View File

@@ -0,0 +1,12 @@
import assert from 'assert';
function add(a: number, b: number): number {
return a + b;
}
assert.strictEqual(add(1, 2), 3, 'add(1, 2) should be 3');
assert.strictEqual(add(0, 0), 0, 'add(0, 0) should be 0');
assert.strictEqual(add(-1, 1), 0, 'add(-1, 1) should be 0');
console.log('All tests passed!');