Sha256: 688010f5504fa165b15efb1b18c99ddea17ae0d587d334a1bdbaa9d747011cfd
Contents?: true
Size: 813 Bytes
Versions: 396
Compression:
Stored size: 813 Bytes
Contents
Trinary = require './trinary' describe 'Trinary', -> it '1 is decimal 1', -> expect(new Trinary('1').toDecimal()).toEqual 1 xit '2 is decimal 2', -> expect(new Trinary('2').toDecimal()).toEqual 2 xit '10 is decimal 3', -> expect(new Trinary('10').toDecimal()).toEqual 3 xit '11 is decimal 4', -> expect(new Trinary('11').toDecimal()).toEqual 4 xit '100 is decimal 9', -> expect(new Trinary('100').toDecimal()).toEqual 9 xit '112 is decimal 14', -> expect(new Trinary('112').toDecimal()).toEqual 14 xit '222 is 26', -> expect(new Trinary('222').toDecimal()).toEqual 26 xit '1122000120 is 32091', -> expect(new Trinary('1122000120').toDecimal()).toEqual 32091 xit 'invalid trinary is decimal 0', -> expect(new Trinary('carrot').toDecimal()).toEqual 0
Version data entries
396 entries across 396 versions & 1 rubygems