test(0051): pin expression bounds at either end of range tokens

x+2..=42 (expression start, 39 iterations summing 897),
x+2<..<x*21 (expressions both ends, 5..41), 0..x*3 (expression end).
Expression parsing stops at the range lexeme from either side, so any
expression works in either position — now pinned.
This commit is contained in:
agra
2026-06-10 22:02:34 +03:00
parent fd14ab5694
commit f513c11ea6
2 changed files with 19 additions and 1 deletions

View File

@@ -8,5 +8,8 @@
10@5 20@6 30@7 | xs, 5=..
inline 0<..=3 sum=6
2 3 4 | lo<..=hi
x+2..=42: n=39 sum=897
x+2<..<x*21: n2=37
0..x*3: n3=6
cmp ok
shl=6