The test needs to include functions with named parameters because currently a solution that ignores named parameters still passes.
The right solution is to call set_side method inside the constructor
Very interesting kata.
I feel like I've learned a lot solving it.
f-strings have only been around since pyton 3
why not just use an f-string?
and now I see that the editor shows "', ' ', and ' ' (8 spaces)the same.
since this works, and meets the description, and what I did... it's funny, that the obvious isupper() got so much attention when it does not work with non alpha inputs.
if the side argument is negative then the result of get_side method also becomes negative. isn't this opposed to what was asked in the description?
Yes, but untested so he got away with it.
I've already submitted another successful solution. Just wanted to notify creator of this kata about minor inconvenience during failed tests debug (in comparison with other katas).
Yeah, printing input values is a nice workaround, btw.
if all tests starting from the 6th are failing, that means your code is incorrect. You should print stuf to the console: the limit and the timings you use. Check that the precision is good enough with what you use too.
I tried to perform some experiments and used datetime module instead suggested time. And correct, all tests starting from 6th started failing for me, but I was unable to get a glue what happened there under the hood.
is that the 6th test, that you're failing?