Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I want to express my small frustration with this kata, because it's not clear whether the expression must be evaluated on each call, or if it has to be calculated at the ending method call. And as it turned out, the first variant is the correct one.
JS sample test is broken: it does not trim the lines of the expected value but does for the actual value, so they will never be equal.
Ruby also does not comply this rule:
the result is compared with smart algorithm, so you don't have to worry about additional space characters that's not visible.
Why is
console.log
disabled??Until this changes, for other people's information,
console.info
still works.Ruby 3.0 should be enabled.
In Java this:
And this:
Are not treated same!!
Two issues found:
/0\b", which was made impossible for no reason. I realize that the "real world" example is hitting buttons one after each other, and hence the appropriate error can be seen immediately, but the way this kata is created, it should be ok to first build a string of the sequence and then process is with regex once the final method is involved. At least that implicit limitation should be made explicit. :)Actual and expected order is not consistent, sometimes they're ok and sometimes they're flipped. The right order is expected first, then actual. At least in sample tests.
I don't understand why no one responding to my queries / issues.
FluentCalculator::init()->dividedBy->dividedBy->times->dividedBy->zero->one->one->seven->plus->dividedBy->eight->nine()
Failed asserting that 1 is identical to 0.
Is obviously wrong. This is from the last random tests which each tests I've manually calculated myself based from the instructions, they are all wrong.
Unless I'm missing something, HINT if ever please?
This comment is hidden because it contains spoiler information about the solution
Hi,
Java:
import java.lang.String;
...!? XDHi! Are there any sources that i can refer to, because i am having some troubles solving this problem.
Thank You.
This comment is hidden because it contains spoiler information about the solution
As mentioned below by @anmae, there are undocumented behaviours:
0+
, but it's nowhere mentionedround down to the nearest integer
i.eround towards negative infinity
, butround towards zero
. This causes a difference when the divisor is negativeThis comment is hidden because it contains spoiler information about the solution