7 kyu
Debug Basic Calculator
2,696 of 4,523Fosna
Loading description...
Fundamentals
Debugging
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Python new test framework
Approved
This comment has been hidden.
Ruby 3.0 should be enabled.
Enabled in this fork
Javascript version of Kata should ideally include random tests
Added in the new fork.
Test.assertSimilar(calculate(-3,"/", 0), null, "-3 / 0 = null") is not a good test. Caclculate is defined to return null, but if calculate returns +/-Infinity (ex. -3 / 0 === -Infinity) test case passes. My bad. Sorry.
Thanks for the Kata, it was good practicing refactoring on it
Thanks for the kata; approved and translated into both Ruby and Python, if you want to approve them :)
I don't know Python. Are there any syntax or logical errors in Python translation?
If you try to edit the kata, you see that going on "validate solution" should return all green, doesn't it?
If I am missing something else, please let me just know and I'll try to fix it :)
Initial solution for Python should have logical and syntax errors all over it since this is debug kata. I don't see it in py initial solution. It looks correct. Then again, I don't know py that good.
Oh, now I get it: yeah, rest assured that is quite far from being a good piece of code, let alone a working one :)