Skip to content

Commit

Permalink
Fixed small errors and generated unit test for 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
Parry-Howells committed Nov 14, 2019
1 parent dfcd54b commit f8bd087
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public NumberService(){
digits.put(4,"Four");
digits.put(5,"Five");
digits.put(6,"Six");
digits.put(7,"Severn");
digits.put(7,"Seven");
digits.put(8,"Eight");
digits.put(9,"Nine");
digits.put(10,"Ten");
Expand Down
4 changes: 3 additions & 1 deletion src/test/java/com/capgemini/tdd/demo/NumberServiceTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,13 @@ void convert3282(){
@Test
void convert0To9999(){
int i = 0;
while(i<999){
while(i<9999){
System.out.println(service.convert(i));
i++;
}
assertEquals("Nine Hundred and Ninety Nine", service.convert(999));
}
@Test
void convert1000(){ assertEquals("One Thousand", service.convert(1000));}

}

0 comments on commit f8bd087

Please sign in to comment.