package eu.ge0;

import org.junit.Test;

public class AppTest {

    @Test
    public void itDoesThings() throws Exception {


    }
}

@@ -38,93 +38,1344 @@
 t;%0A%0A
-public class AppTest %7B%0A%0A    @Test%0A    public void itDoesThings() throws Exception %7B%0A%0A
+import static org.junit.Assert.assertEquals;%0A%0Apublic class AppTest %7B%0A%0A    int%5B%5D haystack, needle;%0A%0A    @Test%0A    public void itReturnsPositionOfSecondArrayWithinFirst() throws Exception %7B%0A        haystack = new int%5B%5D%7B2, 3, 4, 5%7D;%0A        needle = new int%5B%5D%7B4, 5%7D;%0A%0A        assertEquals(2, App.findPosition(haystack, needle));%0A    %7D%0A%0A    @Test%0A    public void itReturnsNegativeNumberWhenNeedleNotFoundInHaystack() throws Exception %7B%0A        haystack = new int%5B%5D%7B2, 3, 4, 5%7D;%0A        needle = new int%5B%5D%7B4, 7%7D;%0A%0A        assertEquals(Integer.MIN_VALUE, App.findPosition(haystack, needle));%0A    %7D%0A%0A    @Test%0A    public void itReturnsNegativeNumberWhenNeedleIsLargerThanHaystack() throws Exception %7B%0A        haystack = new int%5B%5D%7B1, 2, 3%7D;%0A        needle = new int%5B%5D%7B1, 2, 3, 4%7D;%0A%0A        assertEquals(Integer.MIN_VALUE, App.findPosition(haystack, needle));%0A    %7D%0A%0A    @Test%0A    public void itReturnsNegativeNumberWhenNeedleIsEmpty() throws Exception %7B%0A        haystack = new int%5B%5D%7B1, 2, 3%7D;%0A        needle = new int%5B%5D%7B%7D;%0A%0A        assertEquals(Integer.MIN_VALUE, App.findPosition(haystack, needle));%0A    %7D%0A%0A    @Test%0A    public void itReturnsNegativeNumberWhenHaystackIsEmpty() throws Exception %7B%0A        haystack = new int%5B%5D%7B%7D;%0A        needle = new int%5B%5D%7B1, 2, 3%7D;%0A%0A        assertEquals(Integer.MIN_VALUE, App.findPosition(haystack, needle));
 %0A   

test challenge1