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 got it now thank you
But
n
can be negative.This comment is hidden because it contains spoiler information about the solution
I think the desription could be more clear. Was okayish though
Thank you, I was confused as all get out until I read this. This should be the description.
Hey both - I've added an example unit test to the Go solution. It matches the one in the kata description.
the error appears because no unit tests are written. If you write at least one yourself the error disappears and it compiles. Would be better if at least one test existed by default, tbh.
Using Go, this error message doesn't seem right:
STDERR
codewarrior/kata_test
./kata_test.go:8:3: imported and not used: "github.com/onsi/gomega"
./kata_test.go:9:3: imported and not used: "codewarrior/kata"
I see it now, thanks
Is that C#? It fails the last two sample tests too. Read the instructions again, it seems your not doing what they say.
This comment is hidden because it contains spoiler information about the solution
This is incredibly frustrating, the output looks the same, yet some data type that I didn't convert to is causing an issue.
There isn't a proper debugger here, but you can debug by using simple
print(...)
statements and checking where your logic went wrong (after submit)I get the same output that the test indicate I should get when I run the code outside. I am new to this codewars. I didn't realize there was a debugger in here. I will look foer that. I have only explored a few kata so far.
Loading more items...