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.
It means you should keep whitespace on both sides.
Make it consistent on both sides of the roof.
Does preserve white-space mean minimize white-space or make it consistent?
Asking as my code minimized it, and I had to add extra spaces on right sides of roof to pass the tests.
No problem, thank you for taking the time to solve it :)
St3f4n, thanks for offering to help. You were absolutely right. My whitespace preservation was indeed off the mark. Closer inspection of the TDD logs showed that. I have implimented the fix and it's working. Thanks for reaching out!
If you're really stuck paste your code here and mark it as spoiler I'll try to help.
In these kind of katas the author should always emphasize if whitespace should be preserved, otherwise people are confused what to do. The testing is accurate about the details because that is how TDD works. It compares if your string is identical to the correct string. Check if you added a newline at the very end end that might be a problem and if you figured out the whitespace on one side it should be same on the other.
I am building my houses perfectly and preserving white space, and yet because my code is structured slightly differently or my new line characters are positioned differently I can not get my code to pass.
Frustrating since I am building the houses correctly.
Can someone please help explain to me how this regex can tell character placement of capiital letters following hyphens etc. Thx!