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.
Nice. The 3
push
es make encoding 10 times slower though.While people are rightfully pointing out why this solution is not recommended, I enjoyed seeing a new way to solve the problem.
seconds % 3600 % 60 could be only
seconds % 60
That is true. I'm not sure how much I should be reducing,
but I've checked and tweaked the word size and punctuations frequency of non-censored words.
Oops I totally forget about samples! Done now
String length and word size. It's too big and full of noises, which is unnecessary unless you're testing for performance (non-censored words doesn't add anything to testing, and testing for very big censored words doesn't add to anything either).
Thank you, I've halved the random
article
sizes for now. Do check if it's better for debugging.Hmm, I'll probably add another step of random test for only singular words later.
Noted, just for clarity you mean the string length of each input right? not the quantity of tests.
Oh sorry, I've changed the config now! (First time using the package)
Maybe consider reducing the random test input size a bit; it's big enough to cause problems printing the input of all test cases, and they certainly don't need to be that big. It's also too big to debug reasonably.
chai.config.truncateThreshold = 0
should be added to the test block; the expected and actual value strings are being truncated.Ah, okay. I understand what you're saying. Thanks.
It's stated in specifications that words are only separated when there are spaces or newlines in between, so "cake...cake" is considered a word although it looks weird. It keeps the consistency that "ice-cream" is a word. (Other whitespaces are not tested in this problem)
For the test:
Should censor words with symbols/punctuations
Why isn't the second
'${cheese} cake'
converted?JS makes this so hard
Loading more items...