Ad
  • Custom User Avatar

    it's not a "litteral", it's a notation that implies this is a "long" integer (as opposed to an "int" integer, let's say). There is nothing ambiguous here, as long (pun? x) ) as the user looks at the signature in the initial solution and knows the basic data types in Java (which he should know already, for a blue kata).

    cheers

  • Custom User Avatar

    The point is that 987654321L is decieving since it has literal which never were noted to have. I don't know for sure but I guess not every single language have literals like this, just make a note in a task

  • Custom User Avatar

    Both of you, stop it, now.

  • Custom User Avatar

    Well, you're an example yourself

  • Custom User Avatar

    Now you tell me since when 987654321L is an integer

    987654321L is the standart way of marking number as LONG. Here's the initial function signature in java: public static long nextBiggerNumber(long n). Do you now see it? The description is written universal for 10+ other languages, not all of them have longs, that's why there's function signature given which you must've changed for no reason.

    Seriously, get a f..ing grip man. I understand stupidity has no limits, but come on... Don't be that example.

  • Custom User Avatar

    Just make a note in the descriptiion of the task or make an example with literals since it's etremely decieving in a way it is now.

  • Custom User Avatar

    Please don't escalate this any further. Let's see:

    Create a function that takes a positive integer

    That integer doesn't mean data type, it means it's a whole number (a positive one), without decimals. And you can see the initial code:

    public class Kata
    {
        public static long nextBiggerNumber(long n)
        {
          return n;
        }
    }
    
  • Custom User Avatar

    Btw, for a dumb people like you're:
    The task says

    Create a function that takes a positive integer...

    Now you tell me since when 987654321L is an integer, mr. ThereIsNoMistakesInTests?

  • Custom User Avatar

    I don't know what you're on about, you're just spewing words at this point...

    But here's the secret: you can PRINT THE INPUT. For java, that's using System.out.println(arg).

    What IS dumb is your inability to read anything... It's all explained in troubleshooting article, but you're too cool to read it apparently.

  • Custom User Avatar

    Are you really so much dumb? I don't know the initial number cause I can't look at ALL TEST CASES, it's prohibited unless I forfeit the Kata which I don't want to. So I asked if any1 can find a problem in logic, but you're too much dumb to understand what I am asking for.

    Now since I forfeited this Kata I can say that the case is
    assertEquals(-1, Kata.nextBiggerNumber(9876543210L));
    which is just as dumb as you're. It is supposed to have a note at least that number can be given in such form since all examples use an ordinary numbers without L at the end, cause it's quite dumb since the function itself says that initial number is long type.

  • Custom User Avatar

    How could anyone understand what you're asking for? All you're saying is that some test is saying some number should equal -1. So what's the initial number?!

    says that I've got 9876543281 instead of -1,

    9876543281 = your result, -1 = expected result. And what's the initial number you're working with? No one knows, because you're not saying it.

    trying to look cool

    Oh yeah it's very cool repeating the same things and being ignored. If you actually spent 5 minutes on the article Chrono linked, I'm pretty sure you'd find your answer, or how to look for it.

    Bottom line: the tests are correct, your code is wrong, and you should try fixing it. If you're REALLY sure your code is correct, you can post your code here as shown in the same article.

  • Custom User Avatar

    You're right, it's like talking to a wall, you don't even understand what I am asking for but still trying to look cool while not being able to help.

  • Custom User Avatar

    It's like talking to a wall...

    You have all the input you need to find out where the problem is

    Literally you haven't provided a single input parameter yet.

    Anyway, good luck trying to debug it, and make sure to read the article Chrono linked.

  • Custom User Avatar

    You have all the input you need to find out where the problem is. If it's supposed to be -1 - then you don't need another part of the code since it's the only rule to get -1. If only you can't see the spoiler part but it is said to mark parts of solution as spoilers

  • Custom User Avatar

    Still the same problem

    Well, what changed? Did you print the input? You keep showing us the output, but that's meaningless without seeing which test you're talking about.

    is there a mistake in tests

    No.

    Though I pretty much lost all of the points for all of my failed attempts

    You don't lose any points for attempting a kata.

  • Loading more items...