From 647ac4aefa7a58534325c15e153aaac65e5ca17e Mon Sep 17 00:00:00 2001 From: Thomas Papendieck Date: Wed, 28 Nov 2018 18:13:15 +0100 Subject: [PATCH] new failing test --- .../edu/hsfulda/ciip/tdd/BowlingCalculatorTest.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 0596049..a823ae7 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 @@ -46,4 +46,16 @@ public class BowlingCalculatorTest { // assert assertThat("calculated value", calculatedResult, CoreMatchers.equalTo(expectedValue)); } + + @Test + public void twoThrowsAfterStrikeCountTwice() { + // arrange + String listOfThrows = "X 12 11 -- -- -- -- -- -- --"; + int expectedValue = 18; + // act + int calculatedResult = bownlingCalculator.evaluate(listOfThrows); + + // assert + assertThat("calculated value", calculatedResult, CoreMatchers.equalTo(expectedValue)); + } }