Ad
  • Custom User Avatar

    Not sure why this was marked as 'best partices'. Regex is quite slow and shouldn't be used for such easy tasks.

  • Custom User Avatar

    drawPossible expects different results in sample tests and actual tests.

  • Custom User Avatar

    Why does draw require trailing line break when drawPossible doesn't?

    In fact, what is the actual requirement? You didn't explain anything except providing an "example" that you didn't explain how does it relate to the kata, so it might as well be irrelevant. In other words, you kata has no functional specs.

  • Custom User Avatar

    What is drawPossible supposed to do? Why does it expected a different, fixed string?

  • Custom User Avatar

    If the with our height paramater can't be devided by 5

    width? height? Also note that width should be multiple of 25, not 5.

  • Custom User Avatar

    Initial code parameter h and w are flipped.

  • Custom User Avatar
    • "exercise", "width", "total", "width or height parameter", "divided".
    • My name is not Dobby. What text should I draw?
    • What do the width and height mean ? Do I divide by 5 and stretch the sample text by that amount ( scaling the pixels ) ?

    Keep in mind that expected values are useless to see the expected result - newlines are printed as '\n'.