Files
Pier_v1/tests/pile-max-spacing.test.ts
T
ypshimandClaude Haiku 5.5 d61e5d082f fix(rebar): warn when the pile spacing along a 열 is above the 2250 mm maximum
The card only checked the minimum spacing. A 12000 mm footing with 5 piles per 열 gives 2650 mm, above the maximum. The card
now marks such a row ("최대 2250 mm를 넘습니다. 본수를 늘리세요") and the alert list gets a warning (P02). Tests check 5 and 6
piles on a 12000 mm footing.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-10-23 16:20:37 +09:00

18 lines
691 B
TypeScript

import { describe, expect, it } from 'vitest';
import { pileGeometry } from '../src/core/geometry';
import { rowLayout } from '../src/core/piles';
describe('말뚝 최대 간격 2250 mm (승인 2026-10-23)', () => {
it('a footing of 12000 mm with 5 piles per 열 gives 2650 mm: above the maximum', () => {
const [row] = rowLayout([5], pileGeometry(12.0, 8.15));
expect(Math.round(row.spacing * 1000)).toBe(2650);
expect(row.aboveMaximum).toBe(true);
});
it('6 piles per 열 give 2120 mm: within the maximum', () => {
const [row] = rowLayout([6], pileGeometry(12.0, 8.15));
expect(row.aboveMaximum).toBe(false);
expect(row.belowMinimum).toBe(false);
});
});