Files
Pier_v1/tests/bearing-section-svg.test.ts
T
ypshimandClaude Haiku 5.5 1d31d2f3a9 feat(abut): 교대 형상·입력 패널과 교각 받침·솔플레이트 개편
- 교대 형상(src/core/abut, 3D 장면, 목록·카메라·맞춤)과 교대 입력 패널 추가
- 교각 받침 기준 카드 제거, 솔플레이트 규칙을 교각별 입력으로 변경
- 받침 ELEVATION·솔플레이트 TABLE을 모델값으로 연결
- 교대 입력값 카드: 형식 행에 시점·종점 표시, 제목을 "A1 입력값 [입력]"으로 변경
- 테스트 614건 통과, 타입 검사 통과

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-03 14:51:34 +09:00

24 lines
871 B
TypeScript

import { describe, expect, it } from 'vitest';
import { buildPier } from '../src/core/geometry';
import { bearingSectionSvg } from '../src/view/bearing-section-svg';
import { loadP1 } from './helpers';
const model = buildPier(loadP1());
const integrated = buildPier({ ...loadP1(), bearingLayout: '일체' });
describe('교량받침 상세 단면 (승인 2026-10-26, C안 2026-11-03)', () => {
it('labels EL.X at the mortar top and the block height h1 for each bearing', () => {
const svg = bearingSectionSvg(model, 0);
expect(svg).toContain('EL.X');
expect(svg).toContain('h1 150');
});
it('일체 draws one stepped outline (a polygon) for the pair', () => {
expect(bearingSectionSvg(integrated, 0)).toContain('<polygon');
});
it('an unknown pair gives an empty drawing', () => {
expect(bearingSectionSvg(model, 99)).toBe('');
});
});