Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2주차 - Step2 로또(자동) 피드백 요청드립니다. #226

Merged
merged 22 commits into from Jun 25, 2019

Conversation

Integerous
Copy link

@Integerous Integerous commented Jun 25, 2019

안녕하세요!
로또 결과를 저장하고 출력하는 부분에서 많이 헤매다가 이제서야 요청드립니다.

TDD로 구현하는 과정에서 후반부로 갈수록 메서드간 연관이 깊어졌는데,
이 때 테스트 코드 작성에 소홀했기 때문에 더 헤맸던 것 같습니다..

문제가 많을 것으로 예상됩니다. 많은 지적과 조언 부탁드립니다!!

추가) 2개의 로컬저장소를 번갈아가면서 사용하다가 충돌해소 과정에서 일부 커밋이 병합되어 커밋 단위가 일정하지 않습니다..ㅠ

Integerous and others added 22 commits June 23, 2019 23:45
Copy link

@young891221 young891221 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

설계와 구현이 깔끔하여 리뷰하기 좋았습니다. 👍
간단한 피드백 남깁니다. 다음 단계에서 같이 부탁드립니다.
Merge 할게요~!

OutputView.printLottoTickets(lottoTickets);

LottoTicket luckyNumber = LottoSeller.getLuckyNumber(InputView.askLuckyNumber());
Map<LottoRank, List<LottoTicket>> lottoResultMap = LottoSeller.getLottoResult(lottoTickets, luckyNumber);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Map<LottoRank, List> lottoResultMap이 아닌
LottoResult같은 객체로 결과를 계산하는 객체가 나오면 좋을것 같네요.


//Then
// assertThat(testNumbers.get(0)).isNotEqualTo(1);
//TODO: 이 테스트는 완전하지 않습니다. 셔플링을 어떻게 테스트하면 좋을까요

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

랜덤 테스트의 경우는 테스트가 어려운듯 합니다. 굳이 하자면 범위가 맞는지 정도인듯 하네요ㅠㅠ
랜덤이 아닌 수동으로 넣었을 때 올바른 값이 나오는지를 테스트해야될 듯 보입니다ㅎ

@young891221 young891221 merged commit e2cfedc into next-step:Integerous Jun 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants