|
|
@@ -9,14 +9,18 @@ import static java.util.Collections.singletonList;
|
|
9
|
9
|
import static org.hamcrest.CoreMatchers.is;
|
|
10
|
10
|
import static org.junit.Assert.assertThat;
|
|
11
|
11
|
|
|
|
12
|
+/*
|
|
|
13
|
+ * version: 1.0.0
|
|
|
14
|
+ */
|
|
12
|
15
|
public class DiamondPrinterTest {
|
|
|
16
|
+
|
|
13
|
17
|
private DiamondPrinter diamondPrinter;
|
|
14
|
|
-
|
|
|
18
|
+
|
|
15
|
19
|
@Before
|
|
16
|
20
|
public void setUp() {
|
|
17
|
21
|
diamondPrinter = new DiamondPrinter();
|
|
18
|
22
|
}
|
|
19
|
|
-
|
|
|
23
|
+
|
|
20
|
24
|
@Test
|
|
21
|
25
|
public void testOneByOneDiamond() {
|
|
22
|
26
|
List<String> output = diamondPrinter.printToList('A');
|