返回 DeepSeek-Reasonix
verify.sh
1 #!/usr/bin/env bash
2 set -e
3 export PYTHONPYCACHEPREFIX="$(mktemp -d)"
4 python3 - <<'PY'
5 from cart import total_cents
6 from receipt import for_cart, format_total
7
8 assert total_cents([1000, 234]) == 1234
9 assert format_total(1234) == "$12.34", format_total(1234)
10 assert format_total(5) == "$0.05", format_total(5)
11 assert for_cart([199, 250, 1]) == "$4.50", for_cart([199, 250, 1])
12 PY
13
13 lines BASH