Browse Source

new failing test

master
Thomas Papendieck 6 years ago
parent
commit
647ac4aefa
  1. 12
      TDD-pure-function/src/test/java/de/edu/hsfulda/ciip/tdd/BowlingCalculatorTest.java

12
TDD-pure-function/src/test/java/de/edu/hsfulda/ciip/tdd/BowlingCalculatorTest.java

@ -46,4 +46,16 @@ public class BowlingCalculatorTest {
// assert // assert
assertThat("calculated value", calculatedResult, CoreMatchers.equalTo(expectedValue)); 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));
}
} }
Loading…
Cancel
Save