Permalink
Browse files

[tdd-diamond] Diamond of A

  • Loading branch information...
michaelszymczak committed Apr 9, 2017
1 parent d1fd80d commit bfb5ecf3eb5711ca6baf7a58eacac996c3dfc868
@@ -0,0 +1,11 @@
package com.michaelszymczak.diamond;

public class Diamond {
public static Diamond of(char letter) {
return new Diamond();
}

public String rendered() {
return "A";
}
}
@@ -0,0 +1,11 @@
package com.michaelszymczak.diamond

import spock.lang.Specification

class DiamondAcceptanceTest extends Specification {

def "contains one letter if it is the first letter"() {
expect:
Diamond.of('A' as char).rendered() == "A"
}
}

0 comments on commit bfb5ecf

Please sign in to comment.