rcl/golden/error/runtime_overflow_add.test
Ruud van Asseldonk 26778aa965 Print offending values on overflow errors
Also add a golden for overflow on subtract.
2023-11-22 19:41:35 +01:00

8 lines
172 B
Text

0x7fff_ffff_ffff_ffff + 1
# output:
stdin:1:23
1 │ 0x7fff_ffff_ffff_ffff + 1
╵ ^
Error: Addition 9223372036854775807 + 1 would overflow.