| 1 | #!/usr/bin/env bash |
| 2 | set -e |
| 3 | export PYTHONPYCACHEPREFIX="$(mktemp -d)" |
| 4 | python3 - <<'PY' |
| 5 | import window |
| 6 | assert window.in_window("2024-03-31", "2024-03-01", "2024-03-31") |
| 7 | assert window.in_window("2024-01-02", "2024-01-01", "2024-01-03") |
| 8 | assert not window.in_window("2024-04-01", "2024-03-01", "2024-03-31") |
| 9 | PY |
| 10 |