package ru.job4j.arrayTask;

import org.junit.Test;

import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;


public class TaskTest {
    @Test
    public void whenSubIsEqualsOrigin() {
        Task task = new Task();
        String sub = "стиховедческий";
        String origin = "стиховедческий";
        boolean result = task.contains(sub, origin);
        boolean expected = true;
        assertThat(result, is(expected));
    }

    @Test
    public void whenSubIsEqualsOrigin1() {
        Task task = new Task();
        String sub = "стиховедческий";
        String origin = "ст1";
        boolean result = task.contains(sub, origin);
        boolean expected = false;
        assertThat(result, is(expected));
    }

    @Test
    public void whenSubIsEqualsOrigin2() {
        Task task = new Task();
        String sub = "стиховедческий";
        String origin = "ж.оюоюд";
        boolean result = task.contains(sub, origin);
        boolean expected = false;
        assertThat(result, is(expected));
    }
}


@@ -1038,12 +1038,303 @@
 );%0A    %7D
+%0A%0A    @Test%0A    public void whenSubIsEqualsOrigin3() %7B%0A        Task task = new Task();%0A        String sub = %22%D1%81%D1%82%D0%B8%D1%85%D0%BE%D0%B2%D0%B5%D0%B4%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D0%B9%22;%0A        String origin = %22%D1%81%D1%82%D0%B8%D1%85%22;%0A        boolean result = task.contains(sub, origin);%0A        boolean expected = true;%0A        assertThat(result, is(expected));%0A    %7D
 %0A%7D%0A%0A

change in class TaskTest2