| 1 | #!/usr/bin/env bash |
| 2 | set -e |
| 3 | export PYTHONPYCACHEPREFIX="$(mktemp -d)" |
| 4 | python3 - <<'PY' |
| 5 | import convert, tables |
| 6 | assert convert.c_to_f(100) == 212 |
| 7 | assert convert.c_to_f(0) == 32 |
| 8 | assert tables.band(35) == "hot" and tables.band(20) == "warm" and tables.band(5) == "cold" |
| 9 | PY |
| 10 |