diff --git a/TDD-pure-function/src/test/java/de/edu/hsfulda/ciip/tdd/BowlingCalculatorTest.java b/TDD-pure-function/src/test/java/de/edu/hsfulda/ciip/tdd/BowlingCalculatorTest.java index ae569d9..0596049 100644 --- a/TDD-pure-function/src/test/java/de/edu/hsfulda/ciip/tdd/BowlingCalculatorTest.java +++ b/TDD-pure-function/src/test/java/de/edu/hsfulda/ciip/tdd/BowlingCalculatorTest.java @@ -34,4 +34,16 @@ public class BowlingCalculatorTest { // assert assertThat("calculated value", calculatedResult, CoreMatchers.equalTo(expectedValue)); } + + @Test + public void throwAfterSpareCountsTwice() { + // arrange + String listOfThrows = "1/ 11 -- -- -- -- -- -- -- --"; + int expectedValue = 13; + // act + int calculatedResult = bownlingCalculator.evaluate(listOfThrows); + + // assert + assertThat("calculated value", calculatedResult, CoreMatchers.equalTo(expectedValue)); + } }