bigjs-adapter
Advanced tools
Comparing version 2.1.2 to 2.2.0
{ | ||
"name": "bigjs-adapter", | ||
"version": "2.1.2", | ||
"version": "2.2.0", | ||
"description": "big.js adapter for linear-arbitrary-precision", | ||
@@ -5,0 +5,0 @@ "main": "src/bigjs-adapter.js", |
@@ -17,2 +17,3 @@ /*jshint node:true */ | ||
pow: pow, | ||
equals: equals, | ||
toString: toString, | ||
@@ -51,4 +52,8 @@ valueOf: toString, | ||
function equals(x, y) { | ||
return x.eq(y); | ||
} | ||
function toString(x) { | ||
return x.toString(); | ||
} |
@@ -56,2 +56,7 @@ /*jshint node:true, mocha:true */ | ||
}); | ||
it('should have a pow method with support for ints only', function() { | ||
new Decimal('2').equals(new Decimal('2')).should.be.exactly(true); | ||
new Decimal('2').equals(new Decimal('3')).should.be.exactly(false); | ||
}); | ||
}); | ||
@@ -58,0 +63,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8138
133