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.
You're right, fixed!
Isn't this:
It("should test even", func() {
Expect(SimpleMultiplication(1)).To(Equal(9))
Expect(SimpleMultiplication(3)).To(Equal(27))
Expect(SimpleMultiplication(21)).To(Equal(189))
Expect(SimpleMultiplication(23)).To(Equal(207))
})
supposed to be "should test odd"?
You are not supposed to print the number out, return it.
Change the "var" in the description to "let".
Agreed!
Please explain more if you want to get an answer.
Fixed the lists in the random tests.
Hi,
Well, the kata seems to be technically ok, but the huge problem is the lack of originaly of the task.
I guessthat's the reason for the down votes, hence the retirement. We (as community) understand that you put efforts in this work, but you (as part of the cumminity as well and as author) must also understand that there are already thousands of kata like this and that anyhting published is already aprt of the database: at some point, more kata of this type isn't a desirable thing.Cheers
PS: one technical problem, tho: you were sending the list to the user without copying it first, and using the same list to compute the expected result => that means your random tests were cheatable (user mutating the input)
I worked hard on this one so pls appreciate it :)
I included a lot more variables and functions. I also just included random tests.
I fixed it.
Thanks! I'm new to creating kata and I will try to fix this issue.
Hi,
If you're interested in authoring kata, you should read the docs before your next try.
Cheers
Düplicate. Basic OOP / Data Class has been done before.