summaryrefslogtreecommitdiff
path: root/integrationtests/cli_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-11 22:39:02 +0300
committerPaul Buetow <paul@buetow.org>2026-04-11 22:39:02 +0300
commit911f6e70c15b1cdb754baf768054effca284733b (patch)
treecd8cf65c45690860ee8969d6cfe1816e1c94b523 /integrationtests/cli_test.go
parentfc8b403cc183fcc38a6154005744588c30913679 (diff)
refactor: reduce RPN operation error handling boilerplate with helper functions
- Added helper functions: popStack, popTwo, toFloat64, ensureStackLength, buildError - Refactored arithmetic operators (Add, Subtract, Multiply, Divide, Power, Modulo) - Refactored log operators (Log2, Log10, Ln) - Refactored boolean operators (GT, LT, GTE, LTE, EQ, NEQ) - Refactored stack operators (Dup, Swap, Pop, Show) - Refactored variable operators (AssignVariable, UseVariable, AssignLeft, AssignRight)
Diffstat (limited to 'integrationtests/cli_test.go')
0 files changed, 0 insertions, 0 deletions