返回 DeepSeek-Reasonix
verify.sh
1 #!/usr/bin/env bash
2 set -e
3 # Fresh bytecode cache: macOS system Python caches centrally (pycache_prefix),
4 # where a same-size same-second edit is invisible; a throwaway prefix defeats it.
5 export PYTHONPYCACHEPREFIX="$(mktemp -d)"
6 find . -name '__pycache__' -type d -prune -exec rm -rf {} +
7 python3 - <<'EOF'
8 from parser import parse_all
9
10 want = [
11 ("fen", 3),
12 ("gorse", 12),
13 ("heath", 7),
14 ("moor", 1),
15 ("tor", 22),
16 ("vale", 5),
17 ]
18 got = parse_all("fixtures")
19 assert got == want, f"parse_all = {got}, want {want}"
20 EOF
21
21 lines BASH