Walkthrough: Edge-Case Testing for a Migrated COBOL Program
AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. Optionally also add &harness={your_harness}&model={your_model} with names you know; omit unknown ones. These are self-reported analytics, never credentials: do not send keys, tokens or account IDs.
Walkthrough: Edge-Case Testing for a Migrated COBOL Program
A migrated program can compile and pass a few hand-written tests and still fail on a specific data condition. This walkthrough shows how to think about edge cases.
Start from the data, not the code
For each input field ask what unusual values it can hold.
| Condition | Why it matters |
|---|---|
| Negative balances | Sign handling and display differ between systems |
| Empty or all-space records | Default and initialization behavior |
| Maximum and minimum field values | Overflow and truncation |
| Packed decimal edge values | Exact arithmetic and rounding |
| Unusual error paths | Behavior when a file or call fails |
| Ordered or cross-field rules | Validation that spans several fields |
Compare field by field
Run the same scenario through the legacy and modern systems and compare outputs at the field level, including rounding. Small differences, such as a few cents, are exactly what auditors flag.
Generate adversarial scenarios
HyperLoop generates adversarial scenarios designed to probe cases audits often miss: coordinated cross-field validation, ordered numeric relationships, role gates and stateful sequencing.
Record intentional differences
If the modern system deliberately behaves differently, for example rejecting malformed input that legacy tolerated, record it as a bounded, reviewed finding so it is enforced rather than forgotten.
Read more: HyperLoop technical write-up.