forked from functionaljava/functionaljava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestNull.java
More file actions
33 lines (28 loc) · 756 Bytes
/
Copy pathTestNull.java
File metadata and controls
33 lines (28 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package fj.data.test;
import fj.F2;
import fj.F3;
import fj.data.List;
import fj.test.Arbitrary;
import fj.test.CheckResult;
import fj.test.Gen;
import fj.test.Property;
import org.junit.Test;
import static fj.Function.compose;
import static fj.test.Arbitrary.*;
import static fj.test.Arbitrary.arbLong;
import static fj.test.Coarbitrary.coarbInteger;
import static fj.test.Coarbitrary.coarbLong;
import static fj.test.Property.prop;
import static fj.test.Property.property;
/**
* Created by MarkPerry on 3/07/2014.
*/
public class TestNull {
@Test
public void testShowNullParameters() {
Property p = property(arbitrary(Gen.<Integer>value(null)), (Integer i) -> {
return prop(i != null);
});
CheckResult.summary.println(p.check());
}
}