fix(B05 평면 곡선 창): 삼각 자리 글 한 줄로 — 「내각 N° · 곡선 없음」 (403-1)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Se7ytqbohmBQnfYpwYFnYf
This commit is contained in:
@@ -58,7 +58,8 @@ export function centerDirectionOf(
|
||||
* 칸이 막음. 155° 이상은 L 하한을 안 거는 까닭이 보이게. 곡선 없는 교각점(삼각)도 내각(403-1). */
|
||||
export function curveInfoText(curveOn: boolean, inner: number | null, optional: boolean): string {
|
||||
const angle = inner ? `내각 ${Math.round(inner)}°` : "";
|
||||
if (!curveOn) return [angle, "곡선 없음 — 직선이 그대로 꺾입니다"].filter(Boolean).join(" · ");
|
||||
// 한 줄에 들게 — 내각이 있으면 풀이 글은 뺌.
|
||||
if (!curveOn) return angle ? `${angle} · 곡선 없음` : "곡선 없음 — 직선이 그대로 꺾입니다";
|
||||
return angle && optional
|
||||
? `${angle} · ${CURVE_OPTIONAL_INNER_ANGLE_DEG}° 이상 — 곡선 생략 가능`
|
||||
: angle;
|
||||
|
||||
@@ -32,8 +32,8 @@ def test_곡선_있는_자리_그대로(texts):
|
||||
|
||||
|
||||
def test_삼각_자리도_내각(texts):
|
||||
assert texts["triangle"] == "내각 133° · 곡선 없음 — 직선이 그대로 꺾입니다"
|
||||
assert texts["triangleOptional"].startswith("내각 168° · ")
|
||||
assert texts["triangle"] == "내각 133° · 곡선 없음"
|
||||
assert texts["triangleOptional"] == "내각 168° · 곡선 없음"
|
||||
|
||||
|
||||
def test_내각_모르면_곡선_없음만(texts):
|
||||
|
||||
Reference in New Issue
Block a user