|
| 1 | +import test from 'ava' ; |
| 2 | +import { ZZ } from '../../../src' ; |
| 3 | + |
| 4 | +test( 'ZZ.$0().isnonzero()' , t => { t.is( ZZ.$0().isnonzero() , false ) ; } ) ; |
| 5 | +test( 'ZZ.$1().isnonzero()' , t => { t.is( ZZ.$1().isnonzero() , true ) ; } ) ; |
| 6 | + |
| 7 | +test( 'ZZ.from(-2).isnonzero()' , t => { t.is( ZZ.from(-2).isnonzero() , true ) ; } ) ; |
| 8 | +test( 'ZZ.from(-1).isnonzero()' , t => { t.is( ZZ.from(-1).isnonzero() , true ) ; } ) ; |
| 9 | +test( 'ZZ.from(0).isnonzero()' , t => { t.is( ZZ.from(0).isnonzero() , false ) ; } ) ; |
| 10 | +test( 'ZZ.from(-0).isnonzero()' , t => { t.is( ZZ.from(-0).isnonzero() , false ) ; } ) ; |
| 11 | +test( 'ZZ.from(1).isnonzero()' , t => { t.is( ZZ.from(1).isnonzero() , true ) ; } ) ; |
| 12 | +test( 'ZZ.from(2).isnonzero()' , t => { t.is( ZZ.from(2).isnonzero() , true ) ; } ) ; |
| 13 | + |
| 14 | +test( 'ZZ.from("-2").isnonzero()' , t => { t.is( ZZ.from("-2").isnonzero() , true ) ; } ) ; |
| 15 | +test( 'ZZ.from("-1").isnonzero()' , t => { t.is( ZZ.from("-1").isnonzero() , true ) ; } ) ; |
| 16 | +test( 'ZZ.from("0").isnonzero()' , t => { t.is( ZZ.from("0").isnonzero() , false ) ; } ) ; |
| 17 | +test( 'ZZ.from("-0").isnonzero()' , t => { t.is( ZZ.from("-0").isnonzero() , false ) ; } ) ; |
| 18 | +test( 'ZZ.from("1").isnonzero()' , t => { t.is( ZZ.from("1").isnonzero() , true ) ; } ) ; |
| 19 | +test( 'ZZ.from("2").isnonzero()' , t => { t.is( ZZ.from("2").isnonzero() , true ) ; } ) ; |
0 commit comments