docs(release): seal and deliver task agreement 1.25 with retained production state

This commit is contained in:
Agent Workbench Dev
2026-11-04 15:34:29 +08:00
parent 78976ac775
commit ddefe5f108
1444 changed files with 2161122 additions and 17 deletions
@@ -0,0 +1,9 @@
import test from 'node:test';
import assert from 'node:assert/strict';
import { add } from '../src/add.mjs';
test('positive additions return the actual sum', () => assert.equal(add(2, 3), 5));
test('negative additions preserve the signed result', () => assert.equal(add(-3, 1), -2));
test('fractional additions retain numeric precision', () => assert.ok(Math.abs(add(0.1, 0.2) - 0.3) < 1e-12));
test('nonfinite and nonnumeric inputs are rejected', () => {
for (const pair of [[Infinity, 1], ['2', 3], [NaN, 1]]) assert.throws(() => add(...pair), TypeError);
});
@@ -0,0 +1,9 @@
import test from 'node:test';
import assert from 'node:assert/strict';
import { inclusiveRange } from '../src/range.mjs';
test('inclusive ranges contain every integer between both ends', () => assert.deepEqual(inclusiveRange(1, 4), [1, 2, 3, 4]));
test('a single-point range contains exactly one number', () => assert.deepEqual(inclusiveRange(3, 3), [3]));
test('ranges cross zero without omitting negative values', () => assert.deepEqual(inclusiveRange(-2, 1), [-2, -1, 0, 1]));
test('descending fractional and oversized ranges are rejected', () => {
for (const pair of [[2, 1], [0.5, 3], [0, 10000]]) assert.throws(() => inclusiveRange(...pair), RangeError);
});