[문자열 덧셈 계산기] 이효린 미션 제출합니다. #1099
Open
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.
구현 개요
문자열 입력을 받아 구분자(기본 또는 커스텀)를 기준으로 숫자를 분리하고,
이를 합산하여 결과를 출력하는 문자열 덧셈 계산기 기능을 완성했습니다.
입력 → 파싱 → 검증 → 계산 → 출력의 전체 흐름이 MVC 구조로 분리되어 있습니다.
고민한 점
입력값 검증과 파싱의 책임 분리: StringCalculatorService가 로직을 명확히 책임지도록 설계
테스트 입력 처리 문제: NsTest에서 Console을 모킹하기 위한 개행(\n) 처리 조정
패키지 구조