Skip to content

Commit 0613eb9

Browse files
committed
Added simple test for array show
1 parent 9950d9e commit 0613eb9

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

core/src/test/java/fj/ShowTest.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package fj;
2+
3+
import fj.data.Array;
4+
import org.junit.Test;
5+
6+
import static fj.data.Array.array;
7+
import static org.junit.Assert.assertTrue;
8+
9+
/**
10+
* Created by MarkPerry on 4/06/2015.
11+
*/
12+
public class ShowTest {
13+
14+
15+
16+
@Test
17+
public void arrayShow() {
18+
Array<Integer> a = array(3, 5, 7);
19+
String s = Show.arrayShow(Show.intShow).showS(a);
20+
System.out.println(s);
21+
assertTrue(s.equals("Array(3,5,7)"));
22+
23+
}
24+
25+
}

0 commit comments

Comments
 (0)