Python new test framework should be used (Refer this & this for more detail)
Ruby 3.0 should be enabled (Refer this & this for more detail)
Why? The kata wasn't asking for the two's complement of the negative number when the result is negative.
If the arguments are -9 and 1, then '-1000' is the correct result.
It would still work.
If the arguments are -4 and -4, we get '-1000'
what if a or b value is negative?
what if its -4,-4
Nice and simple!
This comment is hidden because it contains spoiler information about the solution
The very same solution I made! I like you. hahahahah
Clever and succinct solution
indeed. thats strange
Is this a case where nested ternary operations are okay? I considered trying a solution like this before using an if, else if, else block, but figured that nested ternary operations weren't ideal. This one isn't too over the top with ?'s and :'s, but I didn't know if this truly was best practices.