-
Notifications
You must be signed in to change notification settings - Fork 112
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
[로또] 신민준 미션 제출합니다. #95
base: main
Are you sure you want to change the base?
[로또] 신민준 미션 제출합니다. #95
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3주차도 고생하셨습니다~~
조금만 더 힘내시고 테스트 코드도 더 작성해보시는 게 좋을 것 같아요!
} | ||
} | ||
|
||
private fun checkBuyAmount(buyAmount: String): Boolean { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
뷰 안에서 너무 많은 역할을 담당할 수 있으니, 이렇게 체킹하는 함수는 따로 validator 같은 파일로 분리하는 게 관리하기 좋을 것 같아요!🙂🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아하! 확실히 분리하는 게 용도도 명확해보여서 더 좋은 것 같습니다! 감사합니다!
} | ||
} | ||
|
||
|
||
// TODO: 추가 기능 구현에 따른 테스트 코드 작성 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
컨트롤러의 함수나 유효성 검사 기능을 담당하는 코드에 대한 추가 테스트 코드가 있으면 좋을 거 같아요.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
제가 테스트 코드 작성이 조금 미숙해서... 이번 미션에서 한번 추가해보겠습니다!
|
||
object Constant { | ||
const val INPUT_BUY_MESSAGE = "구입금액을 입력해 주세요." | ||
const val LOTTO_PRICE = 1000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
로또 가격까지 상수화 하셨군요! 전 이 부분은 생각 못했네요👍
구현 기능