AI Playgrounds: Unit Tests

Regression specification for the algorithms used across the 12 applets. Tests re-implement (or re-assert canonical properties of) each algorithm. Drift between this file and the applet implementations is a maintenance signal: if a test fails after an applet change, decide whether the spec or the implementation is wrong.

Running…

This is a regression specification: each test re-implements (or asserts canonical properties of) the algorithms shipped in the 12 applets. Drift between this file and applet implementations is a maintenance signal. Tests run on page load: refresh to re-run. Open in a browser; no server required.