1 | import BigInteger from './BigInteger';
|
2 | describe('BigInteger', function () {
|
3 | describe('.toString(radix)', function () {
|
4 | it('should support positive numbers', function () {
|
5 | expect(new BigInteger('abcd1234', 16).toString(4)).toBe('2223303101020310');
|
6 | });
|
7 | it('should support negative numbers', function () {
|
8 | expect(new BigInteger('-abcd1234', 16).toString(4)).toBe('-2223303101020310');
|
9 | });
|
10 | });
|
11 | }); |
\ | No newline at end of file |