|  | 
|  | 1 | +import test from 'ava' ; | 
|  | 2 | + | 
|  | 3 | +import { ZZ } from '../../../src' ; | 
|  | 4 | + | 
|  | 5 | +test( '$_1' , t => { t.is( ZZ.$_1().toString(), '-1' ) ; } ) ; | 
|  | 6 | +test( '$_1.sign()' , t => { t.is( ZZ.$_1().sign(), -1 ) ; } ) ; | 
|  | 7 | + | 
|  | 8 | +test( '$_1.lt(-2)' , t => { t.false( ZZ.$_1().lt( ZZ.from(-2) ) ) ; } ) ; | 
|  | 9 | +test( '$_1.le(-2)' , t => { t.false( ZZ.$_1().le( ZZ.from(-2) ) ) ; } ) ; | 
|  | 10 | +test( '$_1.eq(-2)' , t => { t.false( ZZ.$_1().eq( ZZ.from(-2) ) ) ; } ) ; | 
|  | 11 | +test( '$_1.ge(-2)' , t => { t.true ( ZZ.$_1().ge( ZZ.from(-2) ) ) ; } ) ; | 
|  | 12 | +test( '$_1.gt(-2)' , t => { t.true ( ZZ.$_1().gt( ZZ.from(-2) ) ) ; } ) ; | 
|  | 13 | +test( '$_1.ne(-2)' , t => { t.true ( ZZ.$_1().ne( ZZ.from(-2) ) ) ; } ) ; | 
|  | 14 | + | 
|  | 15 | +test( '$_1.lt(-1)' , t => { t.false( ZZ.$_1().lt( ZZ.from(-1) ) ) ; } ) ; | 
|  | 16 | +test( '$_1.le(-1)' , t => { t.true ( ZZ.$_1().le( ZZ.from(-1) ) ) ; } ) ; | 
|  | 17 | +test( '$_1.eq(-1)' , t => { t.true ( ZZ.$_1().eq( ZZ.from(-1) ) ) ; } ) ; | 
|  | 18 | +test( '$_1.ge(-1)' , t => { t.true ( ZZ.$_1().ge( ZZ.from(-1) ) ) ; } ) ; | 
|  | 19 | +test( '$_1.gt(-1)' , t => { t.false( ZZ.$_1().gt( ZZ.from(-1) ) ) ; } ) ; | 
|  | 20 | +test( '$_1.ne(-1)' , t => { t.false( ZZ.$_1().ne( ZZ.from(-1) ) ) ; } ) ; | 
|  | 21 | + | 
|  | 22 | +test( '$_1.lt(0)' , t => { t.true ( ZZ.$_1().lt( ZZ.from(0) ) ) ; } ) ; | 
|  | 23 | +test( '$_1.le(0)' , t => { t.true ( ZZ.$_1().le( ZZ.from(0) ) ) ; } ) ; | 
|  | 24 | +test( '$_1.eq(0)' , t => { t.false( ZZ.$_1().eq( ZZ.from(0) ) ) ; } ) ; | 
|  | 25 | +test( '$_1.ge(0)' , t => { t.false( ZZ.$_1().ge( ZZ.from(0) ) ) ; } ) ; | 
|  | 26 | +test( '$_1.gt(0)' , t => { t.false( ZZ.$_1().gt( ZZ.from(0) ) ) ; } ) ; | 
|  | 27 | +test( '$_1.ne(0)' , t => { t.true ( ZZ.$_1().ne( ZZ.from(0) ) ) ; } ) ; | 
|  | 28 | + | 
|  | 29 | +test( '$_1.lt(1)' , t => { t.true ( ZZ.$_1().lt( ZZ.from(1) ) ) ; } ) ; | 
|  | 30 | +test( '$_1.le(1)' , t => { t.true ( ZZ.$_1().le( ZZ.from(1) ) ) ; } ) ; | 
|  | 31 | +test( '$_1.eq(1)' , t => { t.false( ZZ.$_1().eq( ZZ.from(1) ) ) ; } ) ; | 
|  | 32 | +test( '$_1.ge(1)' , t => { t.false( ZZ.$_1().ge( ZZ.from(1) ) ) ; } ) ; | 
|  | 33 | +test( '$_1.gt(1)' , t => { t.false( ZZ.$_1().gt( ZZ.from(1) ) ) ; } ) ; | 
|  | 34 | +test( '$_1.ne(1)' , t => { t.true ( ZZ.$_1().ne( ZZ.from(1) ) ) ; } ) ; | 
0 commit comments