int64-native
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "int64-native", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A simple uint64_t wrapper for JavaScript", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -60,2 +60,3 @@ var Int64 = require('../int64'), | ||
var positive = new Int64('52B7C3F99AD1C63'); | ||
expect(positive.toSignedDecimalString()).to.equal('372528006791240803'); | ||
expect(positive.toUnsignedDecimalString()).to.equal('372528006791240803'); | ||
@@ -66,3 +67,7 @@ | ||
expect(minusOne.toUnsignedDecimalString()).to.equal('18446744073709551615'); | ||
var jsOverflow = new Int64('002fffffffffffff'); | ||
expect(jsOverflow.toSignedDecimalString()).to.equal('13510798882111487'); | ||
expect(jsOverflow.toUnsignedDecimalString()).to.equal('13510798882111487'); | ||
}); | ||
}); |
19905
67