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));
	}
}
add file for chapter_001_5.3