fix: wire orphaned SP022 fixture, sync DESIGN.md with implementation

This commit is contained in:
dela
2026-08-22 10:16:44 +08:00
parent fc3c69bc23
commit 29a76e8184
2 changed files with 14 additions and 4 deletions
+10
View File
@@ -49,6 +49,16 @@ do
expect_ledger "$ROOT/tests/ledger-invalid/$f" "$c"
done
out=""
if out=$(SUPERPAPER_PHASE=1 "${LINT[@]}" --ledger "$ROOT/tests/ledger-invalid/superderive-v1.yaml" 2>&1); then
true
fi
if echo "$out" | grep -q "SP022" && echo "$out" | grep -q "SP010"; then
ok "superderive-v1.yaml (SP010+SP022, phase=1)"
else
bad "superderive-v1.yaml (wanted SP010+SP022 with SUPERPAPER_PHASE=1)"
fi
expect_work() {
local dir="$1" code="$2"
local out