diff --git a/README.md b/README.md index 03440f9..f2dc9f0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # bowling-kata +try "test driven development" \ No newline at end of file diff --git a/src/test/java/BowlingCalculatorTest.java b/src/test/java/BowlingCalculatorTest.java index edaedda..9453b41 100644 --- a/src/test/java/BowlingCalculatorTest.java +++ b/src/test/java/BowlingCalculatorTest.java @@ -1,11 +1,5 @@ -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.DisplayName; -import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.aggregator.AggregateWith; import org.junit.jupiter.params.provider.Arguments; -import org.junit.jupiter.params.provider.CsvFileSource; -import org.junit.jupiter.params.provider.CsvSource; import org.junit.jupiter.params.provider.MethodSource; import java.util.stream.Stream; @@ -25,6 +19,9 @@ public class BowlingCalculatorTest { } private static Stream playerResults() { - return Stream.of(Arguments.of("worst game", "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0", 0)); // 16x 0 + return Stream.of( + Arguments.of("worst game", "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0", 0), // 20x 0 + Arguments.of("some incomplete frames", "0,1,2,3,0,0,4,0,0,5,0,0,6,0,0,0,0,0,0,0", 21) + ); } } diff --git a/target/test-classes/BowlingCalculatorTest.class b/target/test-classes/BowlingCalculatorTest.class index 82ff973..d29062d 100644 Binary files a/target/test-classes/BowlingCalculatorTest.class and b/target/test-classes/BowlingCalculatorTest.class differ