diff options
author | daurnimator <quae@daurnimator.com> | 2017-06-18 23:36:02 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-06-19 00:09:51 +1000 |
commit | 4723651910e6e6f5cff6f0dce51c00777cc213ce (patch) | |
tree | fb9072070beb0564d4ddf76bdbb77cecbfb16ee7 /tests | |
parent | 61997410c91b75b0bc54790dbed9ea104854df01 (diff) | |
download | fengari-4723651910e6e6f5cff6f0dce51c00777cc213ce.tar.gz fengari-4723651910e6e6f5cff6f0dce51c00777cc213ce.tar.bz2 fengari-4723651910e6e6f5cff6f0dce51c00777cc213ce.zip |
Change size_t from 8 bytes to 4 bytes
JavaScript cannot perform arithmetic on 8byte (i.e. 64bit) numbers
Diffstat (limited to 'tests')
-rw-r--r-- | tests/loadfile-test.bc | bin | 138 -> 138 bytes | |||
-rw-r--r-- | tests/test-suite/inprogress/tpack.js | 9 |
2 files changed, 4 insertions, 5 deletions
diff --git a/tests/loadfile-test.bc b/tests/loadfile-test.bc Binary files differindex db0ac05..f0e98da 100644 --- a/tests/loadfile-test.bc +++ b/tests/loadfile-test.bc diff --git a/tests/test-suite/inprogress/tpack.js b/tests/test-suite/inprogress/tpack.js index e624cce..f94ca40 100644 --- a/tests/test-suite/inprogress/tpack.js +++ b/tests/test-suite/inprogress/tpack.js @@ -487,11 +487,10 @@ test("[test-suite] tpack: testing pack/unpack of strings", function (t) { checkerror("contains zeros", pack, "z", "alo\\0"); - -- TODO: << overflow in JS vs C - -- for i = 2, NB do - -- local s1 = pack("s" .. i, s) - -- assert(unpack("s" .. i, s1) == s and #s1 == #s + i) - -- end + for i = 2, NB do + local s1 = pack("s" .. i, s) + assert(unpack("s" .. i, s1) == s and #s1 == #s + i) + end end do |