package ru.job4j;

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

/**.
*
* @author Anton Vasilyuk
* @version 1.0
* @since 0.1
*/

public class ArrayDublicateTest {
	/**.
	* method for test
	*/
	@Test
	public void whenRemoveDuplicatesThenArrayWithoutDuplicate() {
		ArrayDublicate nemo = new ArrayDublicate();
		String[] wordDubl = {"Мир", "Свет", "Свет", "Газ", "Вода", "Мир"};
		String[] wordExpect = {"Свет", "Газ", "Вода", "Мир"};
		String[] word = nemo.remove(wordDubl);
		assertThat(word, is(wordExpect));
	}
}
@@ -389,49 +389,40 @@
 = %7B%22
-%D0%9C%D0%B8%D1%80%22, %22%D0%A1%D0%B2%D0%B5%D1%82%22, %22%D0%A1%D0%B2%D0%B5%D1%82%22, %22%D0%93%D0%B0%D0%B7%22, %22%D0%92%D0%BE%D0%B4%D0%B0%22, %22%D0%9C%D0%B8%D1%80
+world%22, %22light%22, %22water%22, %22light
 %22%7D;%0A
@@ -451,34 +451,31 @@
 = %7B%22
-%D0%A1%D0%B2%D0%B5%D1%82%22, %22%D0%93%D0%B0%D0%B7%22, %22%D0%92%D0%BE%D0%B4%D0%B0%22, %22%D0%9C%D0%B8%D1%80
+world%22, %22light%22, %22water
 %22%7D;%0A

add file for chapter_001_5.3