(name: str, condition: bool, detail: str = "")
| 28 | |
| 29 | |
| 30 | def check(name: str, condition: bool, detail: str = ""): |
| 31 | global _passed, _failed |
| 32 | if condition: |
| 33 | _passed += 1 |
| 34 | print(f" PASS: {name}") |
| 35 | else: |
| 36 | _failed += 1 |
| 37 | print(f" FAIL: {name} — {detail}") |
| 38 | |
| 39 | |
| 40 | def main(): |