feat: add benchmark-programs — 58 telecom COBOL test programs

作为子目录纳入系统,与核心测试管道协同

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
NB-076
2026-06-25 09:53:21 +08:00
parent 50f9f0f52f
commit 94400d50d4
278 changed files with 44125 additions and 0 deletions
@@ -0,0 +1,28 @@
# Numeric Precision and Arithmetic
## Test Cases
| Test ID | Description |
|---------|-------------|
| NP-N001 | COMP-3 decimal alignment (123.45 + 67.89) |
| NP-N002 | ROUNDED option (10/3, 10/6) |
| NP-N003 | ON SIZE ERROR trap |
| NP-N004 | DIVIDE REMAINDER (with quotient and remainder) |
| NP-N005 | COMP binary sign (negative, min value) |
| NP-N006 | COMPUTE intermediate precision (large decimal) |
| NP-N007 | Zero divide (ON SIZE ERROR trap) |
| NP-A001 | Complex decimal expression |
| NP-A002 | ON SIZE ERROR with COMPUTE |
| NP-A003 | Mixed arithmetic operations |
## Features Covered
- Decimal alignment with PIC 9(n)V99
- ROUNDED clause on arithmetic
- ON SIZE ERROR exception handling
- DIVIDE...REMAINDER
- USAGE COMP signed binary
- COMPUTE with large intermediate values
- Zero-divide trapping
## Expected Results
All 10 tests should display PASS.