#!/usr/bin/env bash # Pass iff the rename is complete and the discount bug is fixed. set -euo pipefail cd "$(dirname "$0")" if grep -rn --include='*.c' --include='*.h' compute_total . ; then echo "check: compute_total still present" exit 1 fi grep -q 'int order_total(const int \*prices, int n);' order.h make -s clean >/dev/null make -s test