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

[문자열 덧셈 계산기] 송재훈 미션 제출합니다. #4

Open
wants to merge 35 commits into
base: main
Choose a base branch
from

Conversation

SongJaeHoonn
Copy link

@SongJaeHoonn SongJaeHoonn commented Oct 19, 2024

디렉토리

calculator
├── Application
├── calculation
│   └── Calculation
├── global
│   ├── DefaultDelimiter
│   └── DelimiterSyntaxIndex
├── input
│   └── InputHandler
├── parser
│   ├── Delimiter
│   └── InputParser
└── runner
    └── CalculateRunner

코드 관심사항

  • 기능별로 도메인을 나눴습니다.
  • 객체 생성을 최대한 제한하기 위해 싱글톤 패턴을 사용했습니다.
  • Runner -> Input -> Parser -> Calculation으로 향하는 구조입니다.
  • 기능별 유닛 테스트를 작성했습니다.

@SongJaeHoonn SongJaeHoonn self-assigned this Oct 19, 2024
@whrjsgml0000
Copy link

whrjsgml0000 commented Oct 20, 2024

문자열을 입력해주세요
//\\n1\2\3
Exception in thread "main" java.util.regex.PatternSyntaxException: Unclosed character class near index 8
[0-9:,\]*
        ^
문자열을 입력해주세요
//.\n
Exception in thread "main" java.lang.NumberFormatException: For input string: ""

이거 확인 한번 해보시는게 좋을 것 같아요!

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.

2 participants