1 | "use strict";
|
2 |
|
3 | var _BigInteger = _interopRequireDefault(require("./BigInteger"));
|
4 |
|
5 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
6 |
|
7 | describe('BigInteger', function () {
|
8 | describe('.toString(radix)', function () {
|
9 | it('should support positive numbers', function () {
|
10 | expect(new _BigInteger["default"]('abcd1234', 16).toString(4)).toBe('2223303101020310');
|
11 | });
|
12 | it('should support negative numbers', function () {
|
13 | expect(new _BigInteger["default"]('-abcd1234', 16).toString(4)).toBe('-2223303101020310');
|
14 | });
|
15 | });
|
16 | }); |
\ | No newline at end of file |