Fails to store big integers #20

Closed
AlexeyKupershtokh opened this Issue Oct 13, 2011 · 1 comment

Projects

None yet

2 participants

@AlexeyKupershtokh

I've added a new test to test.js

testEqual(123456782345245);

wicked@wicked-desktop:~/Alawar/h-n/node_modules/msgpack-0.4/test$ node test.js
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
AssertionError: 123456782345245 deepEqual 2242389021
at /home/wicked/Alawar/h-n/node_modules/msgpack-0.4/test/test.js:7:12
at Object. (/home/wicked/Alawar/h-n/node_modules/msgpack-0.4/test/test.js:24:1)
at Module._compile (module.js:407:26)
at Object..js (module.js:413:10)
at Module.load (module.js:339:31)
at Function._load (module.js:298:12)
at Array. (module.js:426:10)
at EventEmitter._tickCallback (node.js:126:26)

I expected it to pass and restore the same integer 123456782345245 from the message.

@godsflaw
Collaborator

This works on the most recent version, and I will make sure the test makes it into master.

@godsflaw godsflaw closed this Jun 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment