diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-22 13:06:18 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-22 13:06:18 +0300 |
| commit | ec40da3da7644a80c42f566cf2adee1ea346e8db (patch) | |
| tree | a6cf6f42f5ea85d67088d1c6724c7ee1d183cfab /integrationtests | |
| parent | 3757c00ea3e3a44c40eaec1a43adc2dd730accb9 (diff) | |
refactor(rpn): convert prefix mode tests to table-driven format
Consolidate five separate prefix mode test functions into a single
table-driven test with subtests:
- TestPrefixModeEndToEndConvert
- TestPrefixModeAffectsCrossMetricConvert
- TestPrefixModeUsedInArithmetic
- TestPrefixModeAffectsComparison
- TestMetricShowReflectsPrefixMode
Each table entry specifies the SI/IEC mode, RPN expression, and
expected numeric result (with tolerance) or expected string content.
Reduces code from ~130 lines to ~90 while improving readability and
maintainability.
Diffstat (limited to 'integrationtests')
0 files changed, 0 insertions, 0 deletions
