UNPKG

amazon-cognito-identity-js

Version:

Amazon Cognito Identity Provider JavaScript SDK

18 lines (15 loc) 412 B
import BigInteger from '../src/BigInteger'; describe('BigInteger', () => { describe('.toString(radix)', () => { it('should support positive numbers', () => { expect(new BigInteger('abcd1234', 16).toString(4)).toBe( '2223303101020310' ); }); it('should support negative numbers', () => { expect(new BigInteger('-abcd1234', 16).toString(4)).toBe( '-2223303101020310' ); }); }); });