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 can see the expected value on test failure.
You may do that, the idea is to generate random inputs, so they can't be hardcoded.
Got it. Do most folks have one function in a loop to generate a lot of random tests? In my case, could i have generated random nums from 0-7?
Nope, your hypothesis is wrong.
Since, you pass the exact same input to the user's function, the ouput is predictable, hence they know "ahead" of time.
Thank you for this, Im new and didnt realize
@jamesroni Yes, they can see the input of the test, and that's why random tests are enforced(every time random input, so they can't even guess.)
Well, I read what you said - completed the unit tests - then someone was able to solve it with the unit tests. So, whoever did that was able to see the unit tests ahead of time. Then it was retired. So I'm guessing it was a mod. That's fine, I get it - made some mistakes here and was too excited to post my first Kata. However, given the nature of the "not so constructive" criticism and "gatekeeping" mentallity I have seen in play here, I'm not so sure this was time well spent. Hoping this isn't quite the case and that a discourse can continue. Was good experience anyhow.
Farekkusu, how were you able to see the unit test expected output ahead of time and solve the kata in this way? Thank you, new to the community and honestly trying to learn. But with all of the "not so constructive" criticism, I think I may spend my time elsewhere after this experience. Definitely hasn't been catering to onboarding new folks.
Are people able to see your unit tests? If so, doesn't this defeat the purpose?
Blind, I just looked at your solutions and see that you were able to pass. What is the way around this, do I need to import unitTest and setup proper unit test or is there something I'm missing here.
Thank you I am reading this now.
@jameseroni: you should read this:
see unnamed or my solution, about "cheating"
I have unpublished it. Can you please elaborate and provide some thorough and constructive feedback on how I can make this better, what do you mean by the solved without cheating - and some guidance on unit tests. Thanks
Issues:
Unpublish it.
Dan I appreciiate the hard criticism here this is great! Keep it coming. Working through how to best contribute, thanks for the link, I see that this is similar. Do you suggest I refactor?
Loading more items...