import { describe, expect, it } from 'vitest'; import { buildPier } from '../src/core/geometry'; import { blockRebarSectionSvg } from '../src/view/block-rebar-svg'; import { loadP1 } from './helpers'; describe('받침블럭 배근 단면 C–C (승인 2026-10-26)', () => { it('shows the block widths 1200 and the 98 gap, and the S2 layout 7@125=875 for a separate pier', () => { const svg = blockRebarSectionSvg(buildPier(loadP1())); expect(svg).toContain('>1200<'); expect(svg).toContain('162.5 · 7@125=875 · 162.5'); }); it('a 일체 pier shows the 2500 block and the 19 S2 bars (18@125 = 2250 between the first and last)', () => { const svg = blockRebarSectionSvg(buildPier({ ...loadP1(), bearingLayout: '일체' })); expect(svg).toContain('>2500<'); expect(svg).toContain('@125=2250'); }); });