Fix Int64 parsing.

This commit is contained in:
Stefan Thomas
2013-11-07 21:56:26 -08:00
parent e65f975e29
commit 74ef8f8400
2 changed files with 8 additions and 6 deletions

View File

@@ -315,6 +315,11 @@ describe('Serialized types', function() {
types.Int64.serialize(so, {});
});
});
it('Parse "0123456789ABCDEF"', function () {
var so = new SerializedObject("0123456789ABCDEF");
var num = types.Int64.parse(so);
assert.strictEqual(num.toString(10), '81985529216486895');
});
});
describe('Hash128', function() {