Skip to content

Commit b92eb2d

Browse files
improve coverage
1 parent 4006bc3 commit b92eb2d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/src/ZZ/from.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ test( 'ZZ.from()' , t => {
1616
t.is( ZZ.from(false).toString() , '0' ) ;
1717
t.is( ZZ.from(1===0).toString() , '0' ) ;
1818
t.is( ZZ.from('+10').toString() , '10' ) ;
19+
20+
t.is( ZZ.from( [ 0 , 1 ] ).toString() , ZZ.base.toString() ) ;
21+
1922
t.is( ZZ.from(ZZ.from(2, undefined, -1).pow(12)).toString(), '4096')
2023
t.is( ZZ.from(ZZ.from(2, undefined, 0).pow(12)).toString(), '4096')
2124
t.is( ZZ.from(ZZ.from(2, undefined, -1).pow(11)).toString(), '-2048')

0 commit comments

Comments
 (0)