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.
Hey
@sperry
, thanks for clarifying that - just updated the example and it should be more clear now.Hey
@iamchingel
, thanks for your translation! Looks okay, approved.Hey
@zebulan
,I updated your revision. Turns out, as
@AcesOfGlory
pointed out,expected
/actual
arguments in tests were in reversed order, I changed:to:
in all tests.
Hey
@AcesOfGlory
,@snormandeau
, I tried to submit your code and unfortunately it fails. After updating kata with correctactual
/expected
order if you add a test:Test.assert_equals(sort_cards(list('T824Q')), list('248TQ'))
your code still fails, but now shows the correct error message. BTW, there's an error in yourbase
variable, it should be:base = ['A', '2', '3', '4', '5', '6', '7', '8', '9', 'T', 'J', 'Q', 'K']
- I removed the Ace that came after King, as it's a duplicate and kata's description clearly states:Hey
@Joz
, thanks for the comment.What do you mean by "strange things with tuples\lists in test cases"? What's "strange"? What exactly can be more clear? Could you please elaborate a bit more on what you mean?
This comment is hidden because it contains spoiler information about the solution
Hey sperry, thanks for the kind words!
I added (less than) to the description to clarify what I had in mind. It was intended to be "<" and I put that in my solution. I'm afraid it could be hard to check when it comes to time and Codewars, as the result may vary, and so on. :)
I also added "Dates/Time" tag.
Cheers!
Awesome, thanks!
Hey snormandeau, thanks for the comment.
Could you point out where and how did that happen? Are you referring to Python or Java version? Yes, 'T' should come before 'Q', because Ten comes before the Queen in a deck of cards, value-wise. I just checked the solution as well as tests and I'm afraid I can't replicate this issue right now.
Yup, you're right. I had some trouble uploading the updated signature, but it's fixed now. Thanks for pointing it out!
Hey, thanks a ton! I've just fixed it. Thanks.
Thanks!
I have updated tests so that it should accept such outputs too. Thanks for your input!