summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-23 22:30:50 +0300
committerPaul Buetow <paul@buetow.org>2026-05-23 22:30:50 +0300
commitc6d3a88dcb7a3d03324fa55d4266bf462f5299a8 (patch)
treed26184e92e07428c2df860924b443317539a3797 /cmd
parentb04978e65b671e18bd2d6cf98e647855b875b21f (diff)
test: add unit tests for RPN assignment operators (=, :=, =:)
Add assignment_test.go with 13 tests: - Standard assignment 'x 5 =' assigns x=5 - Right assignment '5 x :=' assigns x=5 - Left assignment '5 x =:' assigns x=5 - Variable reassignment 'x 5 = x 10 =' updates x to 10 - Assignment in expressions 'x 5 = x 2 +' results in 7 - Multiple variable assignments - Arithmetic using assigned variable - Assignment with negative values - Assignment with decimal values - Assignment with underscore variable names - Assignment with calculation result '3 4 + x =:' - All three operators in sequence - OperatorRegistry registration verification
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions