Repository navigation
Conversation
무료배송 조건이 `subtotal > 50000` 으로 되어 있어 주문 금액이 정확히 50,000원일 때 배송비 3,000원이 그대로 붙었다. 정책은 "50,000원 이상 무료배송" 이므로 `>=` 로 고친다. 경계값 테스트 2건이 실패하고 있었고, 이 수정으로 10건 모두 통과한다. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
wlrnjs
force-pushed
the
fix/free-shipping-threshold
branch
from
September 20, 2026 12:03
e79e9e7 to
af80bc9
Compare
Closed
Dante 연결 이전에 열린 PR 이라 이벤트를 받지 못했다. 동작 확인을 위해 빈 커밋으로 PR 이벤트를 발생시킨다. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
wlrnjs
force-pushed
the
fix/free-shipping-threshold
branch
from
September 20, 2026 12:12
42f36e8 to
87379a0
Compare
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.
무엇을
calculateShipping의 무료배송 조건을>에서>=로 고칩니다.왜
README 의 금액 정책은 "주문 금액이 50,000원 이상이면 무료배송" 입니다.
그런데 구현은 이렇게 되어 있었습니다.
이 때문에 주문 금액이 정확히 50,000원일 때 무료배송이 적용되지 않고
배송비 3,000원이 그대로 붙었습니다. 딱 기준선에 맞춰 장바구니를 담은
사용자만 손해를 보는, 눈에 잘 안 띄는 경계값 버그입니다.
어떻게
조건을
>=로 바꿨습니다. 한 글자 수정입니다.검증
수정 전에는 경계값 테스트 2건이 실패했습니다.
calculateShipping— 기준 금액과 정확히 같으면 무료배송이다calculateTotal— 상품 금액이 무료배송 기준과 같으면 배송비가 붙지 않는다이 PR 은 Dante 데모용으로 만든 테스트 PR 입니다.
Generated with Claude Code