aboutsummaryrefslogtreecommitdiff
path: root/tests/test-suite
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-06-17 17:51:54 +1000
committerdaurnimator <quae@daurnimator.com>2017-06-17 17:51:54 +1000
commitb5a8760b29531e64e899abd52cb92ac8e6c21426 (patch)
tree3542ed23e62ad70dbe45a0209c4215e1b01bf3f8 /tests/test-suite
parentdd9e8a96e3ec7a7698c36e3612fbda12d7de2d0f (diff)
downloadfengari-b5a8760b29531e64e899abd52cb92ac8e6c21426.tar.gz
fengari-b5a8760b29531e64e899abd52cb92ac8e6c21426.tar.bz2
fengari-b5a8760b29531e64e899abd52cb92ac8e6c21426.zip
src/lstrlib.js: cast to unsigned when packing unsigned
Diffstat (limited to 'tests/test-suite')
-rw-r--r--tests/test-suite/inprogress/tpack.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test-suite/inprogress/tpack.js b/tests/test-suite/inprogress/tpack.js
index b5ae5a9..e624cce 100644
--- a/tests/test-suite/inprogress/tpack.js
+++ b/tests/test-suite/inprogress/tpack.js
@@ -364,9 +364,8 @@ test("[test-suite] tpack: overflow in packing", function (t) {
local umax = (1 << (i * 8)) - 1
local max = umax >> 1
local min = ~max
- -- TODO: unsigned overflow
- -- checkerror("overflow", pack, "<I" .. i, -1)
- -- checkerror("overflow", pack, "<I" .. i, min)
+ checkerror("overflow", pack, "<I" .. i, -1)
+ checkerror("overflow", pack, "<I" .. i, min)
checkerror("overflow", pack, ">I" .. i, umax + 1)
checkerror("overflow", pack, ">i" .. i, umax)