Yeah, I'm just a bit lazzy on rewriting my old solver :|
Thank you for the suggestion. As previously said ideally it should test for every possible order but that would make for complicated tests.
The assignment is what it is, if instructions are followed and the derivation rules are followed in the way they are described then you will end up with a solution that passes the tests.
Btw, I have a code for parsing & simplifying things (brings everything to the standard version)
The checking might be easier with that being done.
This comment is hidden because it contains spoiler information about the solution
I dont see an issue here with the tests but thank you for the suggestion.
Great! Thank you.
ruby translation, please review and approve.
As far as I know cheating on codewars means bypassing test module as a whole, so hardcoded answers aren't considered cheating, as they only expose weak test suites. I did solve the problem and it is a question of minor tweaks to my code to solve the hardcoded case as well, however I wanted to pinpoint what current tests are lacking.
Well it's not really allowed to cheat in any case.
What I mean are random tests for derivative sum/product/quotient/chain rule, because right now there is only one fixed test and none of random tests include that, thus making implementation of those rules pointless, as one can hard code that test case and complete the kata (as I did).
There are random tests in the JS version.
Could you be more specific what you think is lacking in the tests ?