=== AC FEATURE-InputDiagnostics.md :: input-diagnostics-corpus === Intent: Input exhaustion, diagnostics, and source locations execute the corresponding corpus cases. Suite: scoped Requires: executable=python3; scope=test Probe: --list Probe Count: summary import json import os import subprocess import sys SELECT = r"\b(?:input|debug)\b|\$__loc__" result = subprocess.run( [sys.executable, "sources/run_conformance.py", "--select", SELECT, "--json"], capture_output=True, text=True, env={**os.environ, "JQ": os.path.abspath("jq")}, ) print(result.stdout) print(result.stderr, file=sys.stderr) report = json.loads(result.stdout) tally = report["summary"] assert sum(tally.values()) > 0, f"selector matched no case: {SELECT}" assert tally["fail"] == 0 and tally["error"] == 0, tally assert result.returncode == 0, result.returncode === END AC FEATURE-InputDiagnostics.md :: input-diagnostics-corpus === === AC FEATURE-Numeric.md :: numeric-corpus === Intent: Numeric functions and the selected non-decnum cases execute with the corpus-defined results. Suite: scoped Requires: executable=python3; scope=test Probe: --list Probe Count: summary import json import os import subprocess import sys SELECT = r"have_decnum|isnan|infinite|pow\(|\bfabs\b|\bsqrt\b|\bfloor\b" result = subprocess.run( [sys.executable, "sources/run_conformance.py", "--select", SELECT, "--json"], capture_output=True, text=True, env={**os.environ, "JQ": os.path.abspath("jq")}, ) print(result.stdout) print(result.stderr, file=sys.stderr) report = json.loads(result.stdout) tally = report["summary"] assert sum(tally.values()) > 0, f"selector matched no case: {SELECT}" assert tally["fail"] == 0 and tally["error"] == 0, tally assert result.returncode == 0, result.returncode === END AC FEATURE-Numeric.md :: numeric-corpus === === AC FEATURE-SqlBuiltins.md :: sql-builtins-corpus === Intent: The SQL-style operators and builtin inventory pass their matching corpus programs. Suite: scoped Requires: executable=python3; scope=test Probe: --list Probe Count: summary import json import os import subprocess import sys SELECT = r"\b(INDEX|JOIN|IN|builtins)\b" result = subprocess.run( [sys.executable, "sources/run_conformance.py", "--select", SELECT, "--json"], capture_output=True, text=True, env={**os.environ, "JQ": os.path.abspath("jq")}, ) print(result.stdout) print(result.stderr, file=sys.stderr) report = json.loads(result.stdout) tally = report["summary"] print(f"{tally['pass']} passed, {tally['fail']} failed, {tally['error']} errored") assert sum(tally.values()) > 0, f"selector matched no case: {SELECT}" assert tally["fail"] == 0 and tally["error"] == 0, tally assert result.returncode == 0, result.returncode === END AC FEATURE-SqlBuiltins.md :: sql-builtins-corpus === === AC FEATURE-Traversal.md :: traversal-corpus === Intent: Recursive walking and stream conversion execute their corpus cases with their required ordering. Suite: scoped Requires: executable=python3; scope=test Probe: --list Probe Count: summary import json import os import subprocess import sys SELECT = r"\b(?:walk|tostream|fromstream|truncate_stream|recurse)\b" result = subprocess.run( [sys.executable, "sources/run_conformance.py", "--select", SELECT, "--json"], capture_output=True, text=True, env={**os.environ, "JQ": os.path.abspath("jq")}, ) print(result.stdout) print(result.stderr, file=sys.stderr) report = json.loads(result.stdout) tally = report["summary"] assert sum(tally.values()) > 0, f"selector matched no case: {SELECT}" assert tally["fail"] == 0 and tally["error"] == 0, tally assert result.returncode == 0, result.returncode === END AC FEATURE-Traversal.md :: traversal-corpus ===