## check.bash: checking output against a hunk, or under TESTMARK_REGEN, staging it as the hunk's new body. ## Sourced by testmark.bash; the functions here assume they run inside `_testmark_call`. # shellcheck disable=SC2034,SC2178 # shellcheck does not follow namerefs; see document.bash _testmark_check() { (($# == 2)) || { _testmark_err "usage: testmark_check HANDLE NAME &2 diff -u --label "$file: $2 (expected)" --label "$file: $2 (actual)" <(printf '%s' "$body") <(printf '%s' "$input") return 1 }