- strokeCased 테 +4 px · casing 투명도 0.9 — 밝은 회색 바탕(위성 끔 · 음영 켬)에서 미리보기 대비 3 : 1 이상 - 새 시험 test_600_3_zoom_limit — 휠 하한 인자 기본 0.5 · B05 는 인자 안 줌 · 예정노선만 600 km Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
32 lines
1.0 KiB
Python
32 lines
1.0 KiB
Python
"""600-3 줌아웃 한도 인자 지킴 — 휠 부품 하한은 인자가 있을 때만 바뀜(B05 · 추천 지도는 안 줌 = 0.5 그대로).
|
|
|
|
./venv/Scripts/python.exe -m pytest resources/tester/test_600_3_zoom_limit.py -q
|
|
"""
|
|
|
|
import re
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
read = lambda rel: (ROOT / rel).read_text(encoding="utf-8") # noqa: E731
|
|
|
|
INPUT = read("B05_Profile/B05_Profile_UI_RouteEdit_Input.ts")
|
|
|
|
|
|
def test_하한_기본은_0_5():
|
|
assert re.search(r"const MIN_SCALE = 0\.5;", INPUT)
|
|
assert "params.minScale?.() ?? MIN_SCALE" in INPUT
|
|
|
|
|
|
def test_B05_는_하한_인자를_안_줌():
|
|
for rel in (
|
|
"B05_Profile/B05_Profile_UI_RouteEdit.ts",
|
|
"B05_Profile/B05_Profile_UI_RouteEdit_Recommend_Map.ts",
|
|
):
|
|
assert "minScale" not in read(rel), rel
|
|
|
|
|
|
def test_예정노선만_한반도_폭을_줌():
|
|
plan = read("D03_PlanAnalysis/D03_PlanAnalysis_UI_Map.ts")
|
|
assert "MAP_MAX_VIEW_WIDTH_M = 600_000" in plan
|
|
assert "minScale:" in plan
|