Skip to content

Added New Tests in Signum #10724

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Oct 20, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update maths/signum.py
Co-authored-by: Christian Clauss <cclauss@me.com>
  • Loading branch information
imSanko and cclauss authored Oct 20, 2023
commit 6714d15877f58e3c78b189715c7c4908e003041f
4 changes: 3 additions & 1 deletion maths/signum.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ def signum(num) -> int:
>>> signum(0)
0
>>> signum("a")
0
Traceback (most recent call last):
...
TypeError: '<' not supported between instances of 'str' and 'int'
>>> signum([])
0
>>> signum(-10)
Expand Down