File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1212import fj .function .Effect1 ;
1313
1414import java .util .AbstractCollection ;
15+ import java .util .ArrayList ;
1516import java .util .Collection ;
1617import java .util .Iterator ;
1718import java .util .NoSuchElementException ;
Original file line number Diff line number Diff line change 11package fj .data ;
22
3+ import org .junit .Test ;
4+
5+ import static org .hamcrest .CoreMatchers .equalTo ;
6+ import static org .junit .Assert .assertThat ;
7+
38/**
49 * Created by MarkPerry on 14 Feb 16.
510 */
611public class ArrayTest {
712
8-
9- public void test1 () {
10-
13+ @ Test
14+ public void toJavaArray () {
15+ final int max = 3 ;
16+ List <Integer > list = List .range (1 , max + 1 );
17+ assertThat (list .toArray ().toJavaArray (), equalTo (list .toJavaArray ()));
1118 }
1219
1320}
You can’t perform that action at this time.
0 commit comments