Files
Agent-Workbench/docs/desktop-host-f-accepted-source/053-add.test.mjs
T
2026-10-31 13:10:39 +08:00

5 lines
310 B
JavaScript

import test from 'node:test'; import assert from 'node:assert/strict'; import { add } from '../src/add.mjs';
test('adds positive values', () => assert.equal(add(2, 3), 5));
test('adds negative values', () => assert.equal(add(-2, 3), 1));
test('preserves integer addition', () => assert.equal(add(10, 1), 11));