forked from cdm1263/javascript-calculator-7
-
Notifications
You must be signed in to change notification settings - Fork 8
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
[문자열 덧셈 계산기] 조원영 미션 제출합니다. #582
Open
WONYOUNG-HC
wants to merge
20
commits into
woowacourse-precourse:main
Choose a base branch
from
WONYOUNG-HC:WONYOUNG-HC
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+208
−2
Conversation
This file contains 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
- InputProcessor 클래스에서 콘솔로 부터 문자열을 입력 받음 - constant.js에 출력될 문자열들을 선언
- 문자열을 기본 구분자를 통해서 구분
- DelimiterHandler 클래스에서 기본 구분자와 추출한 커스텀 구분자를 처리 - constant.js에 구분자 상수 추가
- 구분자로 분리된 문자들을 계산
- 출력 기능 추가
- InputProcessor에서 IOProcessor로 클래스명 변경 - 클래스에서 입력 뿐만 아닌 출력 기능까지 포함
- 계산된 반환값을 number 타입에서 string 타입으로 변환
- IOProcessor에서 계산된 값을 출력하는 함수 구현
- 문자열에 숫자나 구분자 이외의 문자가 입력된 경우에 대한 처리
- 커스텀 구분자에 대한 예외 항목 추가
- //으로 시작했지만, \n으로 끝나지 않은 경우에 대한 처리
- try 문으로 인한 변수 스코프 문제 해결
- Number.MAX_SAFE_INTEGER를 초과한 경우에 대한 처리
- 문자열 배열에 대한 변수명 변경
- 커스텀 구분자 명령문이 들어왔지만 구분자가 없는 경우에 대한 처리
- 숫자로 음수가 입력되는 경우 잘못된 구분자로 판단
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.
javascript-calculator-precourse
기능 요구 사항
구현 기능 목록
기능 명세 이외 판단 사항