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 95df435 commit 1fa5209Copy full SHA for 1fa5209
test/src/ZZ/from.js
@@ -18,6 +18,12 @@ test( 'ZZ.from()' , t => {
18
t.is( ZZ.from(1===0).toString() , '0' ) ;
19
t.is( ZZ.from('+10').toString() , '10' ) ;
20
21
+ t.is( ZZ.from(7, undefined, -1).valueOf() , -7 ) ;
22
+ t.is( ZZ.from("7", 8, -1).valueOf() , -7 ) ;
23
+ t.is( ZZ.from("-7", 8, -1).valueOf() , 7 ) ;
24
+ t.is( ZZ.from("17", 8, -1).valueOf() , -15 ) ;
25
+ t.is( ZZ.from("-17", 8, -1).valueOf() , 15 ) ;
26
+
27
t.is( ZZ.from( [ 0 , 1 ] ).toString() , ZZ.base.toString() ) ;
28
29
t.is( MAX_NUMBER.toString() , ZZ.from(MAX_NUMBER).toString() ) ;
0 commit comments