返回 DeepSeek-Reasonix
verify.sh
1 #!/usr/bin/env bash
2 set -e
3 export PYTHONPYCACHEPREFIX="$(mktemp -d)"
4 python3 - <<'PY'
5 with open("contacts_clean.txt") as f:
6 lines = [line.strip() for line in f if line.strip()]
7 lowered = [line.lower() for line in lines]
8 assert len(lowered) == len(set(lowered)), "duplicates survived the cleanup"
9 assert set(lowered) == {
10 "ada@example.com",
11 "bo@example.com",
12 "cy@example.com",
13 "dee@example.com",
14 }, sorted(lowered)
15 PY
16
16 lines BASH