/*
 * @author Ranides Atterwim <ranides@gmail.com>
 * @copyright Ranides Atterwim
 * @license WTFPL
 * @url http://ranides.net/projects/assira
 */
package net.ranides.assira.collection.lists;

import net.ranides.assira.ContractTesters;
import net.ranides.assira.collection.mockup.TMaps;
import net.ranides.assira.test.TCollection;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author Ranides Atterwim <ranides@gmail.com>
 */
public class RTListTest {
	
	private final TCollection<Integer> $var = TMaps.MAP_IS.keys();

    @Test
    public void testSuite() {
        ContractTesters.runner()
			.param("collection!", $var)
			.function(new int[0], array -> new RTList<>($var.list(array).values()))
			.run();
		
    }
	
	@Test
    public void testConstruct() {
        assertNotNull(new RTList<>());
        assertNotNull(new RTList<>(new Integer[]{1,2,3}));
        assertNotNull(new RTList<>(new Integer[]{}));
    }
	
}
