i'm sorry, this is my fault; the assertion message was incorrect when n > 254, and the memory was not reset at every test, which caused confusing assertions
I fixed that and republished. Your code is still wrong though, for the reason I said.
That doesn't seem to be the issue, as the error appears for n = 254: for n = 254, at index 232, expected: "#e9e9e9" but got: ""
the index where it doesn't find any entry seems to change everytime I run it, attempting again, I get for n = 254, at index 193, expected: "#c2c2c2" but got: "".
Fixed in latest fork and some time ago respectively
Done in latest fork
fixed + upgraded to JUnit 5
great kata, thanks! learned something new :)
OP solved it, closing
Ugliest code i ever written... xD
Ok, I see, easy fix and I passed. Thanks.
i'm sorry, this is my fault; the assertion message was incorrect when
n > 254
, and the memory was not reset at every test, which caused confusing assertionsI fixed that and republished. Your code is still wrong though, for the reason I said.
That doesn't seem to be the issue, as the error appears for n = 254:
for n = 254, at index 232, expected: "#e9e9e9" but got: ""
the index where it doesn't find any entry seems to change everytime I run it, attempting again, I get
for n = 254, at index 193, expected: "#c2c2c2" but got: ""
.you have to generate shades even when n is larger than 254, it's just that you stop at 254
This comment is hidden because it contains spoiler information about the solution
Thanks :)
C translation (author gone)
My code no workey, fixey the code plz and thank <3
Sadly, that's not the case. I would need 10.000 honors to do that :(
Loading more items...