package ru.matevosyan.lesson_5_Array;

import static org.junit.Assert.*;
import static org.hamcrest.core.Is.is;
import org.junit.Test;

public class DeleteDuplicateTest {

	@Test
	public void whenDuplicateWasFindThenDeleteIt(){

		//assign
		String[] mas = {"First","Find","Fox","First","Fox","S","S"};
		String[] masrotate = {"First","Find","Fox","null","null","S","null"};

		DeleteDuplicate arr = new DeleteDuplicate();
		String[] ar = arr.searchDuplicate(mas);
		
		//act
		assertThat(ar, is(masrotate));

	}

}
@@ -293,16 +293,24 @@
 ,%22S%22,%22S%22
+,%22M%22,%22M%22
 %7D;%0A%09%09Str
@@ -354,30 +354,14 @@
 x%22,%22
-null%22,%22null%22,%22S%22,%22null
+S%22, %22M
 %22%7D;%0A
@@ -432,14 +432,17 @@
 arr.
-search
+deleteArr
 Dupl

add DeleteDuplicateTest.java