I gave up, these additional tests are too unclear
rejected, no random tests, user inactive, old test framework
still you dont know what words will somebody put to smashed :) mby smashed is " hello', 'world', 'this', 'is', 'great ' so....... Be careful, there shouldn't be a space at the beginning or the end of the sentence! ;)
This comment is hidden because it contains spoiler information about the solution
JS: Node v14 should be used along with its appropiate assertion tools (Mocha + Chai). Refer to this and this
plus and minus should return a new instance of the Hex class, not the hex value.
plus
minus
Hex
I gave up on this because I couldn't get my head around the plus and minus. I had working solutions but they would not work with this Kata.
plus(plusNum) {return this.value + plusNum;} minus(minusNum) {return this.value - minusNum;}
C# Translation published, awaiting approval. It features random tests.
No need, they're both identical anyway.
fixed some time ago
This is probably my fave approach to this. Very simple and straightforward!
I am getting the error for toString. 'expected: Hex<0xFF> but was: Hex<0xFF>'
Am I doing something wrong?
To make hex objects comparable you have to provide a method equals
equals
This is Java-specific, and should not be visible in all versions of the description.
No random tests.
Loading collection data...
I gave up, these additional tests are too unclear
rejected, no random tests, user inactive, old test framework
still you dont know what words will somebody put to smashed :) mby smashed is " hello', 'world', 'this', 'is', 'great ' so....... Be careful, there shouldn't be a space at the beginning or the end of the sentence! ;)
This comment is hidden because it contains spoiler information about the solution
JS: Node v14 should be used along with its appropiate assertion tools (Mocha + Chai).
Refer to this and this
plus
andminus
should return a new instance of theHex
class, not the hex value.I gave up on this because I couldn't get my head around the plus and minus. I had working solutions but they would not work with this Kata.
plus(plusNum) {return this.value + plusNum;}
minus(minusNum) {return this.value - minusNum;}
C# Translation published, awaiting approval. It features random tests.
No need, they're both identical anyway.
fixed some time ago
This is probably my fave approach to this. Very simple and straightforward!
I am getting the error for toString.
'expected: Hex<0xFF> but was: Hex<0xFF>'
Am I doing something wrong?
This is Java-specific, and should not be visible in all versions of the description.
No random tests.
Loading more items...