package com.jmonad.seq;

import org.junit.Test;

public class SeqDropTest {

  @Test public void dropListElementsTest() {
    Integer[] numbers = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};

    Seq<Integer> elements = new Seq<Integer>(numbers);

    assert elements.drop(5).toArrayList().toString().equals("[6, 7, 8, 9, 10]");
    assert elements.drop(0).toArrayList().toString().equals("[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]");
    assert elements.drop(20).toArrayList().toString().equals("[]");
  }
}

@@ -76,54 +76,15 @@
 %0A%0A  
-@Test public void dropListElementsTest() %7B%0A   
+private
  Int
@@ -133,20 +133,25 @@
 9, 10%7D;%0A
-%0A 
   
+private
  Seq%3CInt
@@ -195,16 +195,61 @@
 bers);%0A%0A
+  @Test public void dropListElementsTest() %7B%0A
     asse
@@ -313,32 +313,90 @@
 7, 8, 9, 10%5D%22);%0A
+  %7D%0A%0A  @Test public void dropElementsWithNoAmountTest() %7B%0A
     assert eleme
@@ -475,16 +475,251 @@
  10%5D%22);%0A
+  %7D%0A%0A  @Test public void dropElementsWithNegativeAmountTest() %7B%0A    assert elements.drop(-1).toArrayList().toString().equals(%22%5B1, 2, 3, 4, 5, 6, 7, 8, 9, 10%5D%22);%0A  %7D%0A%0A  @Test public void dropElementsWithAmountHigherThanListSizeTest() %7B%0A
     asse

Split drop function tests