You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
package de.edu.hsfulda.ccip.tdd.purefunction.parameterized;
import static org.junit.Assert.assertThat;
import org.hamcrest.CoreMatchers; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.CsvSource;
import de.edu.hsfulda.ccip.tdd.purefunction.BowlingCalculator;
public class BowlingCalculatorParameterized_2_CsvTest {
@CsvSource({ //
"worst game , -- -- -- -- -- -- -- -- -- --, 0", "incomplete frames, -1 23 -4 5- -6 -7 8- 9- -- --, 45" //
}) @ParameterizedTest(name = "#{index} - game type {0}") void testStreamSouceMulti(String gameType, String rolls, int expectedResult) { int score = new BowlingCalculator().score(rolls); assertThat(rolls, score, CoreMatchers.equalTo(expectedResult)); }
}
|