Draft
Hail Caesar
113 of 300Lambo
Loading description...
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.
Copyright ©, all right reserved
https://www.codewars.com/kata/rot13-1/train/javascript - good copy
https://en.wikipedia.org/wiki/ROT13
https://en.wikipedia.org/wiki/Caesar_cipher
Here is another similar kata, which would make this one a duplicate. I was able to copy and paste my solution.
You should definetely provide more test cases.
needs random cases.
Added.
Hey, can we have few more tests and edge cases? (Like punctuation and special characters?)
Sure.
Should have more test with lowercase, capitalze word, puntation adn special character.
Lower case is forbidded in the description.
It would be nice to have more when one test
Ok.
Ruby translation submitted: you can take something to implement random and more base tests from it (Ruby and JS are relatively similar) or then again just ask me if you think I might be of help :)
Has kind of no interest in Python...
Needs random test cases
I'm new to this, and this is only my second authored Kata. Do you have any examples for me to look at and pick apart in order to write the random tests? I read the docs and couldn't seem to find anything.
You could always use the infamous
Math.random
to generate random floats between0
and1
(which you could then also adapt to generate random strings, or random arrays, for example) but if you useMath.random
(or any otherMath
methods for that matter) you run the risk of your random test cases being sabotaged by a cheater; in that case you may want to preloadObject.freeze(Math)
to prevent modification of theMath
object.As for other random generation methods, the Codewars test fixture also provides (at least) 2 other handy random methods:
Test.randomNumber()
(returns a random integer from 0 to 100 inclusive) andTest.randomToken()
(returns a random string of length 8-10 containing only lowercase letters and digits).I can help with random test cases, if you wish.
Anyway, it needs many more base tests cases, do NOT use
Test.expect
and always favourTest.assertEquals
(orTest.assertSimilar
when comparing arrays or particular objects) and possibly encapsulate them intoTest.describe
s andTest.it
s; again, just let me know if you think I might be of help :)Done.
Needs random tests.
Needs people to read issues before adding more ... .
This comment has been hidden.
.
Python translation kumited
Awesome!
Could you please approve it? Thanks
This comment has been hidden.
Wow... 4 of your list i haven't solved, so new work:-)...
This comment has been hidden.