diff options
| author | Nobuhiro Iwamatsu <[email protected]> | 2018-05-10 12:52:42 +0900 |
|---|---|---|
| committer | Nobuhiro Iwamatsu <[email protected]> | 2018-05-10 12:54:08 +0900 |
| commit | 0759647f06b8041a4490f82175af030d2082609c (patch) | |
| tree | 986819ba5c8ac52f0a8bd06949e52679141e2b7f /include/mruby.h | |
| parent | bda88bdbea748be5457fec36e70409cc2118bade (diff) | |
| download | mruby-0759647f06b8041a4490f82175af030d2082609c.tar.gz mruby-0759647f06b8041a4490f82175af030d2082609c.zip | |
Fix test of mruby-pack with big-endian CPUs
When running the mruby-pack test with big endian, test data is incorrect,
so it will fail with "i" and "I".
------
Fail: pack/unpack "i" (mrbgems: mruby-pack)
- Assertion[1] Failed: Expected to be equal
Expected: "\xff\xff\xc7\xcf"
Actual: "\xff\xff\xcf\xc7"
- Assertion[2] Failed: Expected to be equal
Expected: [-12345]
Actual: [-14385]
Fail: pack/unpack "I" (mrbgems: mruby-pack)
- Assertion[1] Failed: Expected to be equal
Expected: "\x00\x0090"
Actual: "\x00\x0009"
- Assertion[2] Failed: Expected to be equal
Expected: [12345]
Actual: [14640]
------
This will fix the test data at big-endian.
Signed-off-by: Nobuhiro Iwamatsu <[email protected]>
Diffstat (limited to 'include/mruby.h')
0 files changed, 0 insertions, 0 deletions
