(x)
| 19 | print("A dog named {}".format(pet.name)) |
| 20 | |
| 21 | def number(x): |
| 22 | match x: |
| 23 | case 1: print("one"), |
| 24 | case 2 | 3: print("two or three"), |
| 25 | case x if x >=4: print("four or bigger"), # range matching not yet possible |
| 26 | case _: print("anything"), |
| 27 | |
| 28 | |
| 29 |
no test coverage detected