We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7608c3f commit f217dcbCopy full SHA for f217dcb
ultimatepython/advanced/pattern_matching.py
@@ -210,6 +210,7 @@ def main() -> None:
210
assert process_point((0, 5)) == "Y-axis at y=5"
211
assert process_point((3, 0)) == "X-axis at x=3"
212
assert process_point((4, 7)) == "Point at (4, 7)"
213
+ assert process_point("invalid") == "Not a valid 2D point"
214
215
# Test sequence pattern matching with lists
216
assert analyze_sequence([]) == "Empty list"
0 commit comments