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.
Done in latest fork
Approved
Fixed in OP's fork
Python: Random tests are vulnerable to input modification
python new test framework is required. updated in this fork
In crystal, the preloaded array should be
WORDS
The descrtiption requires a re-wording to fix language-agnostic and long text issues
The description for Ruby should state that the preloaded array of words is stored in
$words
Ruby 3.0 should be enabled (Refer this & this for more detail)
Minor issue/suggestion with python/ruby random tests (probably crystal too): the input array doesn't generate "valid" 5-7-5 haikus:
yes, it looks like the array used for random tests in Python is not the right one;
I took the liberty to arrange the words array (cf my former post), and random tests are working fine now !
Beautiful kata by the way !
??
Here is the right list to work with ! All works fine with it
words = [ ["salmonella", "consequently", "irregular", "intelligence", "vegetable", "ordinary", "alternative",
"watermelon", "controversial", "marijuana"],
["like", "a", "tweet", "what", "for", "world", "whale", "one", "last", "sun"],
["ocean", "beauty", "tweet", "monster", "yellow", "return", "despair", "flower", "return", "contrast"],
["romantic", "curious", "banana", "jealousy", "tactlessly", "remorseful", "follower", "elephant",
"however", "instagram"],
["salmonella", "consequently", "irregular", "intelligence", "vegetable", "ordinary", "alternative",
"watermelon", "controversial", "marijuana"],
["lackadaisical", "serendipity", "colonoscopy", "dramatically", "parsimonius", "imagination",
"electricity", "diabolical", "deforestation", "abomination"],
["extraterrestrial", "onomatopoeia", "responsibility", "revolutionary", "generalisation",
"enthusiastically", "biodiversity", "veterinarian", "characteristically", "indefatigable"],
["oversimplification", "individuality", "decriminalisation", "compartmentalisation", "anaesthesiologist",
"industrialisation", "buckminsterfullerene", "irresponsibility", "autobiographical", "utilitarianism"]
]
Or is the preloaded code being defined based on the javascript array words? Again sorry, I'm probably making no sense, just trying to understand a little :)
Loading more items...