dojox
Version:
Dojo eXtensions, a rollup of many useful sub-projects and varying states of maturity – from very stable and robust, to alpha and experimental. See individual projects contain README files for details.
14 lines (12 loc) • 324 B
JavaScript
dojo.provide("dojox.math.tests.BigInteger");
dojo.require("dojox.math.BigInteger");
tests.register("dojox.math.tests.BigInteger",
[
function sanity_check(t){
var x = new dojox.math.BigInteger("abcd1234", 16),
y = new dojox.math.BigInteger("beef", 16),
z = x.mod(y);
t.is("b60c", z.toString(16));
}
]
);