diff --git a/B05_Profile/B05_Profile_UI_RouteEdit_Label.ts b/B05_Profile/B05_Profile_UI_RouteEdit_Label.ts index f292f93cd..378add39f 100644 --- a/B05_Profile/B05_Profile_UI_RouteEdit_Label.ts +++ b/B05_Profile/B05_Profile_UI_RouteEdit_Label.ts @@ -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; diff --git a/resources/tester/test_403_triangle_angle.py b/resources/tester/test_403_triangle_angle.py index 21bcd1003..3943450cc 100644 --- a/resources/tester/test_403_triangle_angle.py +++ b/resources/tester/test_403_triangle_angle.py @@ -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):