Ad
  • Custom User Avatar

    Of course... how didn't I see this.
    Had a brain fart I guess ;).

    Thanks!

  • Custom User Avatar

    That's not the input of a single test, you're seeing the input of several tests there. The tests are ok in Java:

    Java Completions 6044

            assertEquals(3,Kata.findEvenIndex(new int[] {1,2,3,4,3,2,1}));
            assertEquals(1,Kata.findEvenIndex(new int[] {1,100,50,-51,1,1}));
            assertEquals(-1,Kata.findEvenIndex(new int[] {1,2,3,4,5,6}));
            ...
    

    See?

  • Custom User Avatar

    This is array that is run in tests:
    1,2,3,4,3,2,1,1,100,50,-51,1,1,1,2,3,4,5,6,20,10,30,10,10,15,35,-8505,-5130,1926,-9026,2824,1774,-1490,-9084,-9696,23094,4,5,6,7,8,9,10,9,8,7,6,5,4,8,8,8,0,0,8
    Somehow expected value is 1 when sum of it is -12924 so even if I'm at index 1 the amount on the right side of it is -12923 and it is not equal 1.
    Please fix it.