Browse Source

new failing test

master
Thomas Papendieck 3 years ago
parent
commit
80decf2cae
  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

@ -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));
}
}
Loading…
Cancel
Save