source:
Dev/trunk/src/client/dojox/math/tests/BigInteger.js
Last change on this file was 483, checked in by hendrikvanantwerpen, 11 years ago | |
---|---|
File size: 324 bytes |
Rev | Line | |
---|---|---|
[483] | 1 | dojo.provide("dojox.math.tests.BigInteger"); |
2 | ||
3 | dojo.require("dojox.math.BigInteger"); | |
4 | ||
5 | tests.register("dojox.math.tests.BigInteger", | |
6 | [ | |
7 | function sanity_check(t){ | |
8 | var x = new dojox.math.BigInteger("abcd1234", 16), | |
9 | y = new dojox.math.BigInteger("beef", 16), | |
10 | z = x.mod(y); | |
11 | t.is("b60c", z.toString(16)); | |
12 | } | |
13 | ] | |
14 | ); |
Note: See TracBrowser
for help on using the repository browser.