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:
Executable
+22
@@ -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
|
||||
Reference in New Issue
Block a user