• In javascript it's makeNegative, not makeNegitive

  • Not sure which programming language that is. But it looks like you misunderstood the challenge.

    The "Test" button runs the test-cases that you can edit yourself. You should make your own test-cases, as the initial test-case is very basic with just makeNegative(42);.

    If you read the Kata desctriction again, you might understand what the issue is. But what do you think your code would return if you run makeNegative(-42);? What should it return according to the Kata desctriction?

    Marked as resolved, as this is an issue with your code and not the kata itself. Please see the FAQ for details.

  • This comment is hidden because it contains spoiler information about the solution

  • There's 2 problems with your code: missing import to use Arrays, and then typo 'number'.

  • I can't exactly guess what programming language your are using.

    Your solution looks fine as far as I can see. So what is the issue you are having? What is the output of the failed test?

    Even if I knew the programming language, I would be too lazy to try and use your code to find out what the issue is, it is much simpler if you just tell us what the error or incorrect output is.

    See also the FAQ for some simple tips on how to debug and ask for help.

  • Rightfully so. You didn't return anything. Also, please mark your post with spoiler flag if you're posting solutions.

  • This comment is hidden because it contains spoiler information about the solution

  • yeah i just figured it out. my code does not work with the single number string. Thought it would have still couted during the other runs but wtvr >:(

  • It is an error with your code, and not the kata itself. I tested with another solution and it worked just fine.
    So I am gonna mark it as resolved. If it is a question about your own code, you should mark it as a question in the future.
    See also the FAQ for more information on this.

    Other than all that, I don't know enough C++ to really help with this.

  • This comment is hidden because it contains spoiler information about the solution

  • No it doesn't. The reference solution no longer generate STDERR warrnings.

    Read the other identically badly written issue you made below. Or make a new issue with actual information in it.

  • Missing #include <stdlib.h>.

  • This comment is hidden because it contains spoiler information about the solution

  • C version generates warnings.

  • I don't see why that would matter. I like that the random tests can be called "should_handle_random_positive_test" and "should_handle_random_negative_test", but I am not attacted to it if that is what you worry about.

    But feel free to write a new random test if you want, then I will update the kata with it.

  • Loading more items...