Last change
on this file since 256 was
256,
checked in by hendrikvanantwerpen, 13 years ago
|
Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).
|
File size:
324 bytes
|
Line | |
---|
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.