| 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 | ); |