Retired
Case Swapping (retired)
2,754 of 6,548joh_pot
Loading description...
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/147.
Please join the discussion to share your opinions, and help us identify duplicate kata and retire them.
Retired.
.
This comment has been hidden.
There's punctuation too (
-
,_
etc.) And your way of doing it is not essentially the correct way since you did not consider including punctuations and other special characters in your modified stringImproved JavaScript version upgraded to Node v14, use
chai
for assertionspython fork with new test framework
C translation :)
Approved.
Ruby 3.0 should be enabled.
fixed
gut cata
God I love Python...a 7kyu for a simple one line.
In Ruby it is a steal :-)
C# translation does follow bracket conventions:
should be
The notation of the preloaded code is not a kata issue. However, I have updated it to reflect your change.
This comment has been hidden.
You need to check if the item in s is a space and if it is you need to add a space. You also need a default case for items which contain non-alphabetical characters such as number.
This is shown by the example below:
CoffeeScript Translation Kumited! Please Accept :D
Thanks mate, approved.
Thank you! :D
No test cases provided error???
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
C# translation available.
Approved some time ago
Python test case has been fixed.
Sorry for the typo in the example test cases, but regrettably I was not notified on this one.
To try and atone, I added the random test cases to the JS version and greenlit the kata: thanks for your kind patience and for your work :)
Awesome. Thanks!
Invalid test cases for python.
Haskell translation kumited.
Problem in predefined test cases:
test.assert_euqals(func(args), expected_result)
but got test.assert_equals(func(args) == expected_result)
Which version? I just tested the JS version and it works fine.
I was talking about Python version. :)
Default test cases don't work properly, not enough arguments are present.
Translated into Python and Ruby, if you want to integrate them in this kata :)
I also took the liberty of changing the test cases with assertEquals, so to have more informative messages; imho the JS version has too few test cases, let me know if you may appreciate some more (including the same set of random test cases).
Thanks! I have accepted your translations. The tests might be slightly on the thin side but I feel it covers all the angles I wanted to test for. If you want you can defintely integrate the random tests. Thanks for the feedback.
Please, add sample test cases.
I honestly don't see the point of adding test cases. You can write your own. It is pretty clear from the description what needs to be done.
Well, I would like it mostly for minor (very minor) convenience reasons. With tests I can immediately start typing my code! Nice to have something to start with (even though writing such test is trivial).
You can immediately start typing your code and then just click submit instead of clicking run tests.
Added 2 test cases.