Sju - #183
Open
jooon1008 wants to merge 7 commits into
Open
Conversation
- 구입 금액 입력 및 유효성 검증 구현 - 구입 금액에 따른 로또 구매 수량 계산 - 구매 수량만큼 로또 번호 생성 - 구매한 로또 수량과 번호 출력 - 당첨 번호 입력 및 문자열 파싱 구현 - Lotto 객체 생성 및 번호 개수·범위·중복 검증 구현 - 보너스 번호 입력 및 유효성 검증 구현 - 당첨 번호와 보너스 번호 중복 검증 구현 - 잘못된 입력 발생 시 해당 단계부터 재입력 처리 - 입력, 파싱, 검증, 출력 책임 분리
- Lotto 번호 개수, 범위, 중복 검증 테스트 추가 - Validator 구매 금액 및 보너스 번호 검증 테스트 추가 - LottoNumberParser 문자열 변환 및 잘못된 입력 테스트 추가 - LottoGenerator 생성 수량 및 랜덤 함수 호출 테스트 추가 - 랜덤 번호 생성을 Mock 처리하여 테스트 결과 고정
- InputManager를 InputView로 이동해 콘솔 입력 책임을 view 계층으로 분리 - 메시지 상수를 view 계층으로 이동 - App과 OutputView의 메시지 import 경로를 변경 - 기존 입력 및 출력 동작은 유지
- 구매한 로또와 당첨 번호를 비교해 등수를 계산 - 보너스 번호를 반영한 당첨 결과 처리 - 등수별 당첨 금액과 수익률 계산 기능 구현 - 당첨 통계와 수익률 출력 기능 추가 - 등수 및 당첨 금액 상수 정의
- 일치 번호 개수 계산 테스트 추가 - 1등부터 5등까지 당첨 등수 판정 테스트 추가 - 등수별 당첨금 합산 테스트 추가 - 구매 금액 대비 수익률 계산 테스트 추가 - 등수 인덱스 상수 테스트 추가
- Lotto에서 Validator 의존을 제거하고 번호 범위 검증을 직접 처리 - Validator가 검증만 수행하도록 반환값 제거 - App에서 입력값을 숫자로 변환하도록 책임 분리 - 에러 메시지 출력을 OutputView로 이동 - 등수 규칙을 상수로 관리하고 로또 번호 정렬을 보장 - 변경된 검증 방식에 맞춰 단위 테스트 수정
- Lotto에서 Validator 의존 제거 - Lotto 내부에서 번호 타입과 범위 검증 수행 - 구매 금액 검증과 숫자 변환 책임 분리 - 구매 금액을 기준으로 LottoGenerator에서 발행 수량 계산 - 생성된 로또 번호를 오름차순으로 정렬 - 구매 로또 출력 로직을 OutputView로 통합 - 게임 결과와 수익률 출력 로직을 OutputView로 통합 - 수익률 출력 형식에 천 단위 구분과 소수점 자리 적용 - 변경된 LottoGenerator 사용 방식에 맞춰 단위 테스트 수정
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.