We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4006bc3 commit b92eb2dCopy full SHA for b92eb2d
test/src/ZZ/from.js
@@ -16,6 +16,9 @@ test( 'ZZ.from()' , t => {
16
t.is( ZZ.from(false).toString() , '0' ) ;
17
t.is( ZZ.from(1===0).toString() , '0' ) ;
18
t.is( ZZ.from('+10').toString() , '10' ) ;
19
+
20
+ t.is( ZZ.from( [ 0 , 1 ] ).toString() , ZZ.base.toString() ) ;
21
22
t.is( ZZ.from(ZZ.from(2, undefined, -1).pow(12)).toString(), '4096')
23
t.is( ZZ.from(ZZ.from(2, undefined, 0).pow(12)).toString(), '4096')
24
t.is( ZZ.from(ZZ.from(2, undefined, -1).pow(11)).toString(), '-2048')
0 commit comments