Files
Pier_v1/tests/abut-order.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

17 lines
648 B
TypeScript

import { describe, expect, it } from 'vitest';
import { structureOrder } from '../src/core/abut/order';
describe('구조물 목록 순서 (A1 · P1 … · A2)', () => {
it('A1 first, piers in order, A2 last', () => {
const list = structureOrder([{ name: 'A2', type: 'A2' }, { name: 'A1', type: 'A1' }], ['P2', 'P1']);
expect(list.map((s) => s.name)).toEqual(['A1', 'P2', 'P1', 'A2']);
expect(list[0].kind).toBe('abut');
expect(list[1].kind).toBe('pier');
expect(list[3].type).toBe('A2');
});
it('no abutments: only the piers', () => {
expect(structureOrder([], ['P1']).map((s) => s.name)).toEqual(['P1']);
});
});