Files
wren/test/number/minus_operand_not_num.wren
T
Bob Nystrom 6fb8804c9e feat: add validateNum/validateInt helpers and runtime type checks for list methods
Replace the old validateIndex function with validateNum and validateInt helpers that produce descriptive runtime error messages. Add new test files covering invalid index types, out-of-bounds indices, and iterator validation for list insert, iterate, and iteratorValue methods. Rename existing number operator error tests to use consistent "must be a number" phrasing.
2014-01-02 15:32:00 +00:00

2 lines
67 B
Plaintext

1 - false // expect runtime error: Right operand must be a number.