Mercurial > hg > Members > tatsuki > functionaljava-master > core
comparison src/test/java/fj/data/test/TestNull.java @ 0:fe80c1edf1be
add getLoop
author | tatsuki |
---|---|
date | Fri, 20 Mar 2015 21:04:03 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:fe80c1edf1be |
---|---|
1 package fj.data.test; | |
2 | |
3 import fj.F2; | |
4 import fj.F3; | |
5 import fj.data.List; | |
6 import fj.test.Arbitrary; | |
7 import fj.test.CheckResult; | |
8 import fj.test.Gen; | |
9 import fj.test.Property; | |
10 import org.junit.Test; | |
11 | |
12 import static fj.Function.compose; | |
13 import static fj.test.Arbitrary.*; | |
14 import static fj.test.Arbitrary.arbLong; | |
15 import static fj.test.Coarbitrary.coarbInteger; | |
16 import static fj.test.Coarbitrary.coarbLong; | |
17 import static fj.test.Property.prop; | |
18 import static fj.test.Property.property; | |
19 | |
20 /** | |
21 * Created by MarkPerry on 3/07/2014. | |
22 */ | |
23 public class TestNull { | |
24 | |
25 @Test | |
26 public void testShowNullParameters() { | |
27 Property p = property(arbitrary(Gen.<Integer>value(null)), (Integer i) -> { | |
28 return prop(i != null); | |
29 }); | |
30 CheckResult.summary.println(p.check()); | |
31 } | |
32 | |
33 } |