diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-23 22:30:50 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-23 22:30:50 +0300 |
| commit | c6d3a88dcb7a3d03324fa55d4266bf462f5299a8 (patch) | |
| tree | d26184e92e07428c2df860924b443317539a3797 /cmd | |
| parent | b04978e65b671e18bd2d6cf98e647855b875b21f (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
