Add disarium-number module: loop, String and stream approaches, dry run, counts to 10^8

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b4VQVEJWetTT1dYzyJ
This commit is contained in:
2026-10-29 03:56:25 +00:00
co-authored by Claude Sonnet 5.5
parent 94306c50ab
commit 4a376b94e9
15 changed files with 331 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
# Regenerates every transcript in output/. Needs JDK 25 and Maven 3.9+.
set -euo pipefail
cd "$(dirname "$0")/.."
mkdir -p output
./scripts/run.sh check > output/01-check-and-series.txt
./scripts/run.sh list > output/02-list-1-to-1000.txt
./scripts/run.sh dryrun > output/03-dry-run.txt
./scripts/run.sh approaches > output/04-approaches-agree.txt
./scripts/run.sh digits > output/05-log10-digit-count.txt
./scripts/run.sh count > output/06-count-to-10-pow-8.txt
mvn -B -q test > /dev/null 2>&1
python3 - <<'PY' > output/07-test-results.txt
import glob, xml.etree.ElementTree as ET
total = fail = 0
for f in sorted(glob.glob("target/surefire-reports/TEST-*.xml")):
for tc in ET.parse(f).getroot().iter("testcase"):
bad = tc.find("failure") is not None or tc.find("error") is not None
total += 1; fail += bad
print(("FAIL " if bad else "PASS ") + tc.get("classname").split(".")[-1] + "." + tc.get("name"))
print(f"{total} tests, {fail} failures")
PY