Ad
  • Custom User Avatar

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

  • Custom User Avatar

    You should change name of method from fixSize() to something meaningful, size should be fixed it means decrease or increase? Better to name this method as increaseSize()

  • Custom User Avatar

    So basically, in few words:
    you want fixSize() to return a copy of the original array into a bigger array.

  • Custom User Avatar

    Instead of making these static methods called on some array you pass in, how about making the class work like ArrayList, ie you create an object of that type and apply methods(like add/remove, size, get) that treat it as a List with unlimited( on a machine with inifinte memory and computation time ) size, but size() still returns the correct number of elements in that list.

    Basically, a kata to make an implementation of ArrayList, hell, even add generics.

    That's what I actually thought this kata was when I read the description.

  • Custom User Avatar

    Can anyone explain to me what does fixSize() mean ?

  • Custom User Avatar

    Too vague. Solved by guesswork.

  • Custom User Avatar

    The instructions are too vague.

  • Custom User Avatar

    The big problem is that I don't understand the meaning of this problem!

  • Custom User Avatar

    Description of task is so crazy. I've not understood it.

  • Custom User Avatar

    True sorry about that. Just wanted to mark it with major issues. I'll close this one.

  • Custom User Avatar

    I think creating an issue to solve several issues that have just been raised no more than 10 minutes ago is a bit excessive

  • Custom User Avatar

    This kata still needs a lot of work. See @bkaes comments for details.

  • Custom User Avatar

    ExtendArray.getLength doesn't get tested at all. However, neither ExtendArray.getLength nor ExtendArray.get actually contribute anything to the kata.

  • Custom User Avatar

    You're creating instances just to test static methods:

    ExtendArray myExtendedArray = new ExtendArray();
    assertEquals(myExtendedArray.get(changedArray, randomIndex), myExtendedArray.get(myArray, randomIndex));
    

    That's quite strange. Instead, use the class method:

    assertEquals(ExtendArray.get(changedArray, randomIndex), ExtendArray.get(myArray, randomIndex));
    
  • Custom User Avatar

    You don't actually tell what ExtendArray.fixSize should do. The name suggests that it should fix a broken size, but your code suggests that it should enlarge the array.

  • Loading more items...