Ad
  • Custom User Avatar

    It means you should keep whitespace on both sides.

  • Custom User Avatar

    Make it consistent on both sides of the roof.

  • Custom User Avatar

    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.

  • Custom User Avatar

    No problem, thank you for taking the time to solve it :)

  • Custom User Avatar

    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!

  • Custom User Avatar

    If you're really stuck paste your code here and mark it as spoiler I'll try to help.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    Can someone please help explain to me how this regex can tell character placement of capiital letters following hyphens etc. Thx!