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.
Kind of. You're expanding the content of the variable, but if that has spaces then you've passed multiple arguments instead of a single argument:
It wouldn't, but you need to make sure you're not splitting up the text into arguments anywhere, because then you've lost the delimiters.
I don't see this behaviour in the tests. It's probably your code that is removing spaces, which is a very easy mistake to make in shell.
Something is printing to stdout, not sure what (because I'm unfamiliar with cw's sh environment), but I noticed that two spaces look a lot like one space, it doesn't even add a single pixel for the second space. It's there if copied though. Kind of unfortunate font behaviour..
i tried to improve the assertion messages, and added some input validation. if you want to train on this improved version, save your code somewhere, click the RESET button, and paste back your code.
the logging for Shell in this kata is not ideal, but pasting your code and running the sample tests, i do see:
"shell stdout" means your answer here, while "expected" is the correct answer and
835871232077058, 1
the inputThat is only 14 requests. I figured you'd be too focused on checking that they didn't overlap to notice that one was missing, but by distributing them manually you wouldn't lose one of them due to some oversight or bug in the code that you wouldn't manually reproduce since you'd be aware of every step carried out.
Yes, but you didn't distribute the requests between the taxis. Yes, check it by hand. Better yet, solve it by hand so that you are actually checking that it's solvable rather than looking at the solution and failing to find a problem (which doesn't mean there isn't one)
You won't be able to distribute them between six taxis so it should be easy to figure it out why that's wrong