Files
Aislo/resources/tester/helper_438_1_straighten.cjs
T
eomsangdonandClaude Sonnet 5.5 c05a4ba798 test(508-1b 옛 헬퍼 공용 불러오기 7/7): 헬퍼 8 곳 loadTs 베낌 걷고 makeLoader 로
- 헬퍼 동작 그대로(풀이 함수 본문은 옮겨 담음) · 제품 코드 안 고침
- 확인: 이 묶음 헬퍼를 쓰는 시험 70 개 전 70 통과 → 후 70 통과 (시험별 junit 대조 · 어긋남 0)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-21 17:30:35 +09:00

18 lines
770 B
JavaScript

/* 438-1 초기 종단 직선화 거울 헬퍼 — `logic/B05_Profile_Grade_Ground.ts` `groundFollowingBasePvi`
* (`passThrough` 직선화)를 그 자리에서 트랜스파일해 돌림. 입력 argv[2] JSON [GroundFollowingInput, …] ·
* 표준출력 = 꼭짓점 목록 한 벌씩.
*/
const fs = require("fs");
const path = require("path");
const { makeLoader } = require("./helper_ts_stub_loader.cjs");
const { loadTs } = makeLoader({
root: path.join(__dirname, "..", ".."),
});
const ground = loadTs(
path.join(__dirname, "..", "..", "B05_Profile", "logic", "B05_Profile_Grade_Ground.ts"),
);
const cases = JSON.parse(fs.readFileSync(process.argv[2], "utf8"));
process.stdout.write(JSON.stringify(cases.map((item) => ground.groundFollowingBasePvi(item))));