Commit 7b23c92
committed
test: add test cases for uint/uint64 arithmetic operations
Added comprehensive test cases to verify that uint and uint64 types
are properly handled in arithmetic operations:
- Tests for uint type with plus, minus, and times operations
- Tests for uint64 type with plus, minus, and times operations
- All tests verify that values within int64 range preserve integer type
This ensures the overflow-safe handling from commit 1e0783c is working
correctly and prevents regressions.1 parent 1e0783c commit 7b23c92
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
192 | 200 | | |
193 | 201 | | |
194 | 202 | | |
| |||
247 | 255 | | |
248 | 256 | | |
249 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
250 | 262 | | |
251 | 263 | | |
252 | 264 | | |
| |||
0 commit comments