=== AC FEATURE-Control.md :: control-corpus === Intent: Conditional and alternative expressions execute the selected corpus cases with jq truth and stream semantics. Suite: scoped Requires: executable=python3; scope=test Probe: --list Probe Count: summary ```python import json import os import subprocess import sys SELECT = r"^\[if (1,null,2|empty|1|null) then|^\[if (true|false) then|^if false then 3" 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 assert tally["fail"] == 0 and tally["error"] == 0, tally assert result.returncode == 0, result.returncode ``` === END AC FEATURE-Control.md :: control-corpus === === AC FEATURE-Conversion.md :: conversion-conformance === Intent: Type, length, conversion, and Unicode filters execute their applicable corpus cases. Suite: scoped Requires: executable=python3; scope=test Probe: --list Probe Count: summary ```python import json import os import subprocess import sys SELECT = r"^(?:utf8bytelength|\[\.\[\] \| length\]|\[\.\[\] \| try utf8bytelength catch \.\]|implode\|explode|fromjson \| isnan|tojson \| fromjson)$" 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, SELECT assert tally["fail"] == 0 and tally["error"] == 0, tally assert result.returncode == 0, result.returncode ``` === END AC FEATURE-Conversion.md :: conversion-conformance === === AC FEATURE-Dates.md :: dates-corpus === Intent: Date parsing, formatting, and time conversion pass their executing corpus slice. Suite: scoped Requires: executable=python3; scope=test Probe: --list Probe Count: summary ```python import json import os import subprocess import sys SELECT = r"\b(?:strftime|strflocaltime|strptime|mktime|gmtime)\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-Dates.md :: dates-corpus === === AC FEATURE-Documentation.md :: documented-corpus === Intent: The documented command passes an executing slice of identity filters. Suite: scoped Requires: executable=python3; scope=test Probe: --list Probe Count: summary ```python import json import os import subprocess import sys SELECT = r"^\.$" 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-Documentation.md :: documented-corpus === === AC FEATURE-Formats.md :: formats-corpus === Intent: Format filters execute the corpus cases that exercise their encoding and interpolation behavior. Suite: scoped Requires: executable=python3; scope=test Probe: --list Probe Count: summary ```python import json import os import subprocess import sys SELECT = r"@(?:text|json|html|uri|urid|csv|tsv|sh|base64d?)\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-Formats.md :: formats-corpus === === AC FEATURE-GeneratorControl.md :: generator-control-conformance === Intent: Reduction, intermediate extraction, and bounded generator consumption pass their applicable corpus cases. Suite: scoped Requires: executable=python3; scope=test Probe: --list Probe Count: summary ```python import json import os import subprocess import sys SELECT = r"^(?:reduce \.\[\] as \$x \(0; \. \+ \$x\)|\[foreach \.\[\] as \[\$i, \$j\] \(0; \. \+ \$i - \$j\)\]|\[limit\(3; \.\[\]\)\]|\[skip\(3; \.\[\]\)\]|first\(1,error\(\"foo\"\)\)|nth\(1; 0,1,error\(\"foo\"\)\))$" 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, SELECT assert tally["fail"] == 0 and tally["error"] == 0, tally assert result.returncode == 0, result.returncode ``` === END AC FEATURE-GeneratorControl.md :: generator-control-conformance === === AC FEATURE-GeneratorCore.md :: core-corpus === Intent: The basic literal and identity corpus cases execute successfully through the command interface. Suite: scoped Requires: executable=python3; scope=test Probe: --list Probe Count: summary ```python import json import os import subprocess import sys SELECT = r"^(true|false|null|1|-1|\.|1,1|1,\.)$" 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-GeneratorCore.md :: core-corpus === === 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 ```python 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 ```python 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-Operators.md :: operators-corpus === Intent: Arithmetic and comparison expressions execute the selected corpus cases with jq operand and result semantics. Suite: scoped Requires: executable=python3; scope=test Probe: --list Probe Count: summary ```python import json import os import subprocess import sys SELECT = r"^1\+1$|^2-1$|^2-\(-1\)$|^25 % 7$|^49732 % 472$|^1 \+ 2 \* 2 \+ 10 / 2$" 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 assert tally["fail"] == 0 and tally["error"] == 0, tally assert result.returncode == 0, result.returncode ``` === END AC FEATURE-Operators.md :: operators-corpus === === AC FEATURE-Paths.md :: paths-corpus === Intent: Path generation and lookup execute the selected corpus cases with the required path values. Suite: scoped Requires: executable=python3; scope=test Probe: --list Probe Count: summary ```python import json import os import subprocess import sys SELECT = r"^path\(\.foo\[0,1\]\)$|^path\(\.\)$|^pick\(\.a\.b\.c\)$" 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 assert tally["fail"] == 0 and tally["error"] == 0, tally assert result.returncode == 0, result.returncode ``` === END AC FEATURE-Paths.md :: paths-corpus === === AC FEATURE-ScopedConformance.md :: integration-programs === Intent: All nonempty program texts, including cross-feature and front-end cases, pass an executing selected corpus run. Suite: scoped Requires: executable=python3; scope=test Probe: --list Probe Count: summary ```python import json import os import subprocess import sys SELECT = r".+" 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-ScopedConformance.md :: integration-programs === === 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 ```python 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-Strings.md :: string-conformance === Intent: String searches, trimming, splitting, and joining execute their applicable corpus cases. Suite: scoped Requires: executable=python3; scope=test Probe: --list Probe Count: summary ```python import json import os import subprocess import sys SELECT = r"^(?:split\(\"\"\)|indices\(1\)|indices\(\[1,2\]\)|indices\(\", \"\)|index\(\"!\"\)|ascii_upcase|trim, ltrim, rtrim|join\(\",\"\))$" 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, SELECT assert tally["fail"] == 0 and tally["error"] == 0, tally assert result.returncode == 0, result.returncode ``` === END AC FEATURE-Strings.md :: string-conformance === === AC FEATURE-Traversal.md :: traversal-corpus === Intent: Recursive walking and stream conversion execute the corpus cases with their required ordering. Suite: scoped Requires: executable=python3; scope=test Probe: --list Probe Count: summary ```python 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 ===