brain backup 2026-09-14

This commit is contained in:
Adolfo Reyna
2026-09-14 22:38:47 -04:00
parent ca346cc6e7
commit f0ead4f6fa
147 changed files with 73451 additions and 8 deletions
@@ -0,0 +1,24 @@
import test from 'node:test';
import assert from 'node:assert/strict';
import {
isCorrectTotal,
isCorrectEquation,
hasReasoningEvidence,
} from '../src/session.mjs';
test('accepts the total for seven groups of two', () => {
assert.equal(isCorrectTotal('14'), true);
});
test('rejects an incorrect total for seven groups of two', () => {
assert.equal(isCorrectTotal('13'), false);
});
test('accepts an equivalent multiplication equation', () => {
assert.equal(isCorrectEquation('2 × 7 = 14'), true);
});
test('requires a learner explanation to name groups or repeated addition and the total', () => {
assert.equal(hasReasoningEvidence('There are 7 groups of 2, so there are 14 shoes.'), true);
assert.equal(hasReasoningEvidence('It is 14.'), false);
});