Skip to content

Commit

Permalink
fix: 테스트 깨진 것 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
be-student committed Mar 7, 2023
1 parent c56db90 commit 9dbe90f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 56 deletions.
43 changes: 0 additions & 43 deletions src/main/java/blackjack/domain/BlackJackReferee.java

This file was deleted.

14 changes: 1 addition & 13 deletions src/test/java/blackjack/domain/BlackJackRuleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,4 @@
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;

@SuppressWarnings({"NonAsciiCharacters"})
@DisplayNameGeneration(ReplaceUnderscores.class)
class BlackJackRuleTest {

@ParameterizedTest
@CsvSource(value = {"11, 11, TIE", "11, 12, LOSE", "11, 10, WIN", "22, 22, TIE", "22, 21, LOSE", "22, 23, TIE",
"21, 21, TIE", "21, 22, WIN", "21, 20, WIN"})
void 딜러와_플레이어의_점수를_통해_딜러의_결과를_계산할_수_있음(final int dealerScore, final int playerScore, final ResultType resultType) {
final BlackJackRule blackJackRule = new BlackJackRule(dealerScore);
final ResultType actual = blackJackRule.calculateDealerResult(playerScore);
assertThat(actual).isEqualTo(resultType);
}
}
/

0 comments on commit 9dbe90f

Please sign in to comment.