[문자열 덧셈 계산기] 강성준 미션 제출합니다.#232
Open
ketru44 wants to merge 12 commits intowoowacourse-precourse:mainfrom
Open
Conversation
added 12 commits
October 20, 2025 01:12
학습 목표, 전체적인 개요, 설계, 기능 목록과 설계 과정에서 고민한 문제해결 과정을 README.md에 작성하였습니다.
비동기 입력을 받는 getInputUsingWoowaMissionUtils를 App 클래스에 추가하였습니다. 재사용성과 테스트를 고려하여 입력을 받을 때 질문으로 출력되는 문자열을 인자로 받도록하였습니다. App 클래스의 run() 함수에서 해당 입력함수를 실행하고 trim 함수로 좌우 공백을 지워주도록 했습니다. \n 입력에 대한 테스트 케이스를 통해 원하는 실행을 확인했습니다.
파싱하기 전에 빈 문자열에 대해 검증하는 함수를 작성했습니다.
입력값을 파싱하기 위한 parser 클래스를 추가하고, 정규표현식을 사용해 커스텀 구분자를 추출하는 extractCustomDelimiterStrictly 함수를 추가했습니다.
추출한 커스텀 구분자에 대해서 구분자의 길이(1자), 개수(1개), 숫자 불가능을 검증하는 함수를 작성했습니다.
App에서 입력값을 Parser을 활용해 가공하는 연결 코드를 작성했습니다.
missionutils의 Console.print를 사용해 계산의 결과를 출력합니다.
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.
기능 목록(커밋 기준)
기본 구분자(,,:)커스텀 구분자로 추가한다.