7 kyu
Turn any word into a beef taco
796 of 1,853user9955155
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.
Added random tests in this fork
LGTM, Approved
C# tests generate warnings:
tests/Fixture.cs(45,51): warning SYSLIB0023: 'RNGCryptoServiceProvider' is obsolete: 'RNGCryptoServiceProvider is obsolete. To generate a random number, use one of the RandomNumberGenerator static methods instead.'
Python:
is
instead of value equality.Fixed in this fork
Node 14 should be enabled (Refer this and this for more info)
Python new test framework should be used (Refer this & this for more detail)
Ruby 3.0 should be enabled (Refer this & this for more detail)
Done for Python.
Hey! kindda new to coding. so i tried by setting your recipes (t, c, a, etc..) on a dict and creating a loop for each letter on the string (word) passed, so basically i can append the values (if existing on the set dictionary) to a list but while running the test am getting an error "t not defined"
is it mandatory to basically set the values of our taco (t, c, a, etc...) on the function or can i use this dictionary way!
again am new to coding so am not sure if the error is from my end! Cheers!
To be exact, this is the error i get: Traceback: in in tacofy NameError: name 't' is not defined
t
by itself is an identifier i.e variable/function argument/etc.To look for a key in an object in JS (or a hash in Ruby, or a dict in C#) you need to use either one of these instead:
C# translation for approval :)
done, thank you :)
Nice kata but maybe can you add in the description "all vowels (except Y) = beef" instead of "all vowels = beef" because Y is a vowel too in general time. ;)
That is often debated in similar katas: "y" tends to be considered a vowel apparently only in English. Source
I was actually thinking about this, I wasn't sure what the general consensus was. Making this update now!
Crystal translation :)
Thank you :)
Javascript and Ruby translations, please check and accept :-)
Wow thank you so much, these are awesome. Loving the community here :)
There are some repeated cases in the Ruby version; nice work with the random tests, which sadly are still missing from the Python version :(
Kinda minor, but the proper spelling is "tomato". Cheers.
Making this change right now, thanks dawg
Groovy.