Files
Pier_v1/tests/pile-spec.test.ts
T
CopilotandCopilot 06e1b97a62
ITAM Code Check / build-and-config-check (push) Failing after 37s
ITAM Docker Build Check / docker-build-check (push) Failing after 1m0s
교각 프로그램 초기 버전
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-02 15:55:01 +09:00

18 lines
724 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { describe, expect, it } from 'vitest';
import { findPileSpec, PHC_PILES, STEEL_PILES } from '../src/core/pile-spec';
describe('말뚝 규격 목록 (승인 2026-10-23)', () => {
it('the steel list has the nine rows of the sheet, and 609.6 × 12 gives inner 585.6 and area 225', () => {
expect(STEEL_PILES.length).toBe(9);
const p = findPileSpec('강관', 609.6, 12)!;
expect(p.inner).toBe(585.6);
expect(p.area).toBe(225);
});
it('the PHC list has the four rows of the sheet; a pair not in the list is not found', () => {
expect(PHC_PILES.length).toBe(4);
expect(findPileSpec('PHC', 500, 80)!.inner).toBe(340);
expect(findPileSpec('강관', 609.6, 10)).toBeUndefined();
});
});