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","First"};
		String[] masrotate = {"First","Find","Fox",null,null};

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

	}

}
@@ -282,20 +282,26 @@
 irst%22,%22F
-irst
+ox%22,%22S%22,%22S
 %22%7D;%0A%09%09St
@@ -345,17 +345,32 @@
 ox%22,
+%22
 null
-,
+%22,%22
 null
+%22,%22S%22,%22null%22
 %7D;%0A%0A

add DeleteDuplicateTest.java