package com.jmonad.seq;

import com.jmonad.seq.lambda.Function;

import org.junit.Test;

public class SeqSomeTest {

    private Integer[] numbers = {100, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};

    private Function trueFunc = new Function<Boolean, Integer>() {
        @Override public Boolean call(Integer param) {
            return param > 10;
        }
    };

    private Function falseFunc = new Function<Boolean, Integer>() {
        @Override public Boolean call(Integer param) {
            return param > 100;
        }
    };

    @Test public void expectTrueFromSomeFunctionTest() {
        assert new Seq<>(numbers).some(trueFunc);
    }

    @Test public void expectFalseFromSomeFunctionTest() {
        assert !new Seq<>(numbers).some(falseFunc);
    }
}

@@ -110,18 +110,16 @@
 Test %7B%0A%0A
-  
   privat
@@ -180,26 +180,24 @@
 , 11, 12%7D;%0A%0A
-  
   private Fu
@@ -247,34 +247,32 @@
 eger%3E() %7B%0A      
- 
- 
 @Override public
@@ -304,34 +304,32 @@
 am) %7B%0A          
-  
 return param %3E 1
@@ -337,30 +337,24 @@
 ;%0A      
- 
- 
 %7D%0A
-  
   %7D;%0A%0A
-  
   privat
@@ -413,26 +413,24 @@
 %3E() %7B%0A      
-  
 @Override pu
@@ -466,34 +466,32 @@
 am) %7B%0A          
- 
- 
 return param %3E 1
@@ -504,22 +504,16 @@
     
-  
 %7D%0A  
- 
- 
 %7D;%0A%0A
-  
   @T
@@ -555,34 +555,32 @@
 unctionTest() %7B%0A
-  
       assert new
@@ -615,17 +615,13 @@
 c);%0A
-  
   %7D%0A%0A
-  
   @T
@@ -674,26 +674,24 @@
 t() %7B%0A      
-  
 assert !new 
@@ -722,16 +722,14 @@
 eFunc);%0A
-  
   %7D%0A%7D%0A

Fix checkList problem in seq test class