Lines Matching refs:qq
38 is($LIB->_str($x), 123, qq|$LIB->_str(\$x) = 123|);
39 is($LIB->_str($y), 321, qq|$LIB->_str(\$y) = 321|);
45 qq|$LIB->_str($LIB->_add(\$x, \$y)) = 444|);
47 qq|$LIB->_str($LIB->_sub(\$x, \$y)) = 123|);
49 qq|$LIB->_str($LIB->_mul(\$x, \$y)) = 39483|);
51 qq|$LIB->_str($LIB->_div(\$x, \$y)) = 123|);
58 qq|$LIB->_str($LIB->_mul(\$x, \$y)) = 39483|);
60 qq|$LIB->_str(\$x) = 39483|);
62 qq|$LIB->_str(\$y) = 321|);
65 qq|$LIB->_str($LIB->_div(\$x, \$y)) = 123|);
67 qq|$LIB->_str(\$x) = 123|);
69 qq|$LIB->_str(\$y) = 321|);
76 is($LIB->_str($r1), "0", qq|$LIB->_str(\$r1) = "0"|);
84 qq|$LIB->_str($LIB->_add(\$x, \$z)) = 39485|);
87 is($LIB->_str($re), 123, qq|$LIB->_str(\$re) = 123|);
88 is($LIB->_str($rr), 2, qq|$LIB->_str(\$rr) = 2|);
92 ok(! $LIB->_is_zero($x), qq|$LIB->_is_zero(\$x)|);
93 ok(! $LIB->_is_one($x), qq|$LIB->_is_one(\$x)|);
95 is($LIB->_str($LIB->_zero()), "0", qq|$LIB->_str($LIB->_zero()) = "0"|);
96 is($LIB->_str($LIB->_one()), "1", qq|$LIB->_str($LIB->_one()) = "1"|);
100 is($LIB->_str($LIB->_two()), "2", qq|$LIB->_str($LIB->_two()) = "2"|);
101 is($LIB->_str($LIB->_ten()), "10", qq|$LIB->_str($LIB->_ten()) = "10"|);
103 ok(! $LIB->_is_ten($LIB->_two()), qq|$LIB->_is_ten($LIB->_two()) is false|);
104 ok( $LIB->_is_two($LIB->_two()), qq|$LIB->_is_two($LIB->_two()) is true|);
105 ok( $LIB->_is_ten($LIB->_ten()), qq|$LIB->_is_ten($LIB->_ten()) is true|);
106 ok(! $LIB->_is_two($LIB->_ten()), qq|$LIB->_is_two($LIB->_ten()) is false|);
108 ok( $LIB->_is_one($LIB->_one()), qq|$LIB->_is_one($LIB->_one()) is true|);
109 ok(! $LIB->_is_one($LIB->_two()), qq|$LIB->_is_one($LIB->_two()) is false|);
110 ok(! $LIB->_is_one($LIB->_ten()), qq|$LIB->_is_one($LIB->_ten()) is false|);
112 ok(! $LIB->_is_one($LIB->_zero()), qq/$LIB->_is_one($LIB->_zero()) is false/);
113 ok( $LIB->_is_zero($LIB->_zero()), qq|$LIB->_is_zero($LIB->_zero()) is true|);
114 ok(! $LIB->_is_zero($LIB->_one()), qq/$LIB->_is_zero($LIB->_one()) is false/);
118 ok( $LIB->_is_odd($LIB->_one()), qq/$LIB->_is_odd($LIB->_one()) is true/);
119 ok(! $LIB->_is_odd($LIB->_zero()), qq/$LIB->_is_odd($LIB->_zero()) is false/);
120 ok(! $LIB->_is_even($LIB->_one()), qq/$LIB->_is_even($LIB->_one()) is false/);
121 ok( $LIB->_is_even($LIB->_zero()), qq/$LIB->_is_even($LIB->_zero()) is true/);
127 is($LIB->$method($x), 1, qq|$LIB->$method(\$x) = 1|);
129 is($LIB->$method($x), 2, qq|$LIB->$method(\$x) = 2|);
131 is($LIB->$method($x), 3, qq|$LIB->$method(\$x) = 3|);
133 is($LIB->$method($x), 4, qq|$LIB->$method(\$x) = 4|);
135 is($LIB->$method($x), 5, qq|$LIB->$method(\$x) = 5|);
137 is($LIB->$method($x), 6, qq|$LIB->$method(\$x) = 6|);
139 is($LIB->$method($x), 7, qq|$LIB->$method(\$x) = 7|);
141 is($LIB->$method($x), 8, qq|$LIB->$method(\$x) = 8|);
143 is($LIB->$method($x), 9, qq|$LIB->$method(\$x) = 9|);
146 is($LIB->$method($x), 1, qq|$LIB->$method(\$x) = 1|);
148 is($LIB->$method($x), 2, qq|$LIB->$method(\$x) = 2|);
150 is($LIB->$method($x), 3, qq|$LIB->$method(\$x) = 3|);
152 is($LIB->$method($x), 4, qq|$LIB->$method(\$x) = 4|);
154 is($LIB->$method($x), 5, qq|$LIB->$method(\$x) = 5|);
156 is($LIB->$method($x), 6, qq|$LIB->$method(\$x) = 6|);
158 is($LIB->$method($x), 7, qq|$LIB->$method(\$x) = 7|);
160 is($LIB->$method($x), 8, qq|$LIB->$method(\$x) = 8|);
162 is($LIB->$method($x), 9, qq|$LIB->$method(\$x) = 9|);
165 is($LIB->$method($x), 1, qq|$LIB->$method(\$x) = 1|);
167 is($LIB->$method($x), 2, qq|$LIB->$method(\$x) = 2|);
169 is($LIB->$method($x), 3, qq|$LIB->$method(\$x) = 3|);
171 is($LIB->$method($x), 4, qq|$LIB->$method(\$x) = 4|);
173 is($LIB->$method($x), 5, qq|$LIB->$method(\$x) = 5|);
175 is($LIB->$method($x), 6, qq|$LIB->$method(\$x) = 6|);
177 is($LIB->$method($x), 7, qq|$LIB->$method(\$x) = 7|);
179 is($LIB->$method($x), 8, qq|$LIB->$method(\$x) = 8|);
181 is($LIB->$method($x), 9, qq|$LIB->$method(\$x) = 9|);
186 is($LIB->_len($x), $i, qq|$LIB->_len(\$x) = $i|);
193 is($LIB->_digit($x, 0), 9, qq|$LIB->_digit(\$x, 0) = 9|);
194 is($LIB->_digit($x, 1), 8, qq|$LIB->_digit(\$x, 1) = 8|);
195 is($LIB->_digit($x, 2), 7, qq|$LIB->_digit(\$x, 2) = 7|);
196 is($LIB->_digit($x, 8), 1, qq|$LIB->_digit(\$x, 8) = 1|);
197 is($LIB->_digit($x, 9), 0, qq|$LIB->_digit(\$x, 9) = 0|);
198 is($LIB->_digit($x, -1), 1, qq|$LIB->_digit(\$x, -1) = 1|);
199 is($LIB->_digit($x, -2), 2, qq|$LIB->_digit(\$x, -2) = 2|);
200 is($LIB->_digit($x, -3), 3, qq|$LIB->_digit(\$x, -3) = 3|);
201 is($LIB->_digit($x, -9), 9, qq|$LIB->_digit(\$x, -9) = 9|);
202 is($LIB->_digit($x, -10), 0, qq|$LIB->_digit(\$x, -10) = 0|);
209 qq|$LIB->_str($LIB->_copy(\$x)) = "$_"|);
211 qq|$LIB->_str(\$x) = "$_"|);
217 is($LIB->_zeros($x), 6, qq|$LIB->_zeros(\$x) = 6|);
220 is($LIB->_zeros($x), 0, qq|$LIB->_zeros(\$x) = 0|);
223 is($LIB->_zeros($x), 3, qq|$LIB->_zeros(\$x) = 3|);
226 is($LIB->_zeros($x), 0, qq|$LIB->_zeros(\$x) = 0|);
233 qq|$LIB->_str($LIB->_lsft(\$x, \$y, 10)) = 10000|);
238 qq|$LIB->_str($LIB->_lsft(\$x, \$y, 10)) = 20000|);
243 qq|$LIB->_str($LIB->_lsft(\$x, \$y, 2)) = 128 << 4|);
248 qq|$LIB->_str($LIB->_rsft(\$x, \$y, 10)) = 1|);
253 qq|$LIB->_str($LIB->_rsft(\$x, \$y, 10)) = 20|);
258 qq|$LIB->_str($LIB->_rsft(\$x, \$y, 2)) = 256 >> 4|);
263 qq|$LIB->_str($LIB->_rsft(\$x, \$y, 10)) = 0|);
277 qq|$LIB->_str($LIB->_lsft($LIB->_new("$xstr"), |
278 . qq|$LIB->_new("$nstr"), |
279 . qq|$LIB->_new("$bstr")))|);
290 is($LIB->_acmp($x, $y), -1, qq|$LIB->_acmp(\$x, \$y) = -1|);
291 is($LIB->_acmp($y, $x), 1, qq|$LIB->_acmp(\$y, \$x) = 1|);
292 is($LIB->_acmp($x, $x), 0, qq|$LIB->_acmp(\$x, \$x) = 0|);
293 is($LIB->_acmp($y, $y), 0, qq|$LIB->_acmp(\$y, \$y) = 0|);
296 is($LIB->_acmp($x, $y), 0, qq|$LIB->_acmp(\$x, \$y) = 0|);
298 is($LIB->_acmp($x, $y), 1, qq|$LIB->_acmp(\$x, \$y) = 1|);
299 is($LIB->_acmp($y, $x), -1, qq|$LIB->_acmp(\$y, \$x) = -1|);
302 is($LIB->_acmp($x, $y), -1, qq|$LIB->_acmp(\$x, \$y) = -1|);
303 is($LIB->_acmp($y, $x), +1, qq|$LIB->_acmp(\$y, \$x) = +1|);
307 is($LIB->_acmp($x, $y), 1, qq|$LIB->_acmp(\$x, \$y) = 1|);
308 is($LIB->_acmp($y, $x), -1, qq|$LIB->_acmp(\$y, \$x) = -1|);
309 is($LIB->_acmp($x, $x), 0, qq|$LIB->_acmp(\$x, \$x) = 0|);
310 is($LIB->_acmp($y, $y), 0, qq|$LIB->_acmp(\$y, \$y) = 0|);
314 is($LIB->_acmp($x, $y), -1, qq|$LIB->_acmp(\$x, \$y) = -1|);
315 is($LIB->_acmp($y, $x), 1, qq|$LIB->_acmp(\$y, \$x) = 1|);
316 is($LIB->_acmp($x, $x), 0, qq|$LIB->_acmp(\$x, \$x) = 0|);
317 is($LIB->_acmp($y, $y), 0, qq|$LIB->_acmp(\$y, \$y) = 0|);
325 qq|$LIB->_str(\$xmod) = "629"|);
333 qq|$LIB->_str(scalar($LIB->_div(\$x, \$y))) = 3|);
338 is($LIB->_str($x), 30, qq|$LIB->_str(\$x) = 30|);
339 is($LIB->_str($y), 3, qq|$LIB->_str(\$y) = 3|);
344 is($LIB->_str($x), 0, qq|$LIB->_str(\$x) = 0|);
345 is($LIB->_str($y), 123, qq|$LIB->_str(\$y) = 123|);
353 is($LIB->_str($x), "$_", qq|$LIB->_str(\$x) = "$_"|);
357 is($x, $_, qq|\$x = $_|);
364 qq|$LIB->_str($LIB->_sqrt(\$x)) = "12"|);
367 qq|$LIB->_str($LIB->_sqrt(\$x)) = "12000000"|);
374 qq|$LIB->_str($LIB->_root(\$x, \$n)) = "4"|); # 4.xx => 4.0
379 qq|$LIB->_str($LIB->_root(\$x, \$n)) = "3"|);
386 qq|$LIB->_str($LIB->_pow(\$x, \$n)) = 0|);
391 qq|$LIB->_str($LIB->_pow(\$x, \$n)) = 1|);
396 qq|$LIB->_str($LIB->_pow(\$x, \$n)) = 1|);
401 qq|$LIB->_str($LIB->_pow(\$x, \$n)) = 5|);
406 qq|$LIB->_str($LIB->_pow(\$x, \$n)) = 81 ** 3|);
409 qq|$LIB->_str($LIB->_root(\$x, \$n)) = 81|);
413 qq|$LIB->_str($LIB->_pow(\$x, \$n)) = 81 ** 3|);
415 qq|$LIB->_str($LIB->_pow(\$x, \$n)) = "150094635296999121"|);
418 qq|$LIB->_str($LIB->_root(\$x, \$n)) = "531441"|);
420 qq|$LIB->_str($LIB->_root(\$x, \$n)) = "81"|);
425 qq|$LIB->_str($LIB->_pow(\$x, \$n)) = "523347633027360537213511521"|);
427 qq|$LIB->_str($LIB->_root(\$x, \$n)) = "81"|);
431 qq|$LIB->_str($LIB->_root(\$x, \$n)) = "80"|);
435 qq|$LIB->_str($LIB->_root(\$x, \$n)) = "81"|);
448 qq|$LIB->_str($LIB->_pow(\$x, \$n)) = $rc|);
461 qq|$LIB->_str($LIB->_root(\$x, \$n)) = '1'|);
468 qq|$LIB->_str($LIB->_root(\$x, \$n)) = $res->[$i-2]|);
477 qq|$LIB->_str($LIB->_fac(\$x)) = "1"|);
481 qq|$LIB->_str($LIB->_fac(\$x)) = "1"|);
485 qq|$LIB->_str($LIB->_fac(\$x)) = "2"|);
489 qq|$LIB->_str($LIB->_fac(\$x)) = "6"|);
493 qq|$LIB->_str($LIB->_fac(\$x)) = "24"|);
497 qq|$LIB->_str($LIB->_fac(\$x)) = "120"|);
501 qq|$LIB->_str($LIB->_fac(\$x)) = "3628800"|);
505 qq|$LIB->_str($LIB->_fac(\$x)) = "39916800"|);
509 qq|$LIB->_str($LIB->_fac(\$x)) = "479001600"|);
513 qq|$LIB->_str($LIB->_fac(\$x)) = "6227020800"|);
520 qq|$LIB->_str(\$x) = "6"|);
525 qq|$LIB->_str(\$x) = "6227020800"|);
533 is($LIB->_str($x), $expected, qq|$LIB->_str(\$x) = $expected|);
535 is($LIB->_str($x), $_, qq|$LIB->_str(\$x) = $_|);
542 is($LIB->_str($x), $expected, qq|$LIB->_str(\$x) = $expected|);
544 is($LIB->_str($x), $_, qq|$LIB->_str(\$x) = $_|);
553 is($LIB->_str($x), $q, qq|\$x = $LIB->_new("$p"); $LIB->_inc()|);
557 is($LIB->_str($x), $p, qq|\$x = $LIB->_new("$q"); $LIB->_dec()|);
566 is($LIB->_str($x), $q, qq|\$x = $LIB->_new("$p"); $LIB->_inc()|);
570 is($LIB->_str($x), $p, qq|\$x = $LIB->_new("$q"); $LIB->_dec()|);
575 is($LIB->_str($x), "1001", qq|$LIB->_str(\$x) = "1001"|);
577 is($LIB->_str($x), "1000", qq|$LIB->_str(\$x) = "1000"|);
586 is($LIB->_str($x), $z, qq|$LIB->_str(\$x) = $z|);
592 is($LIB->_str($x), $z, qq|$LIB->_str(\$x) = $z|);
597 # is($LIB->_acmp($x, $y), -1, qq|$LIB->_acmp($x, $y) = -1|);
605 qq|$LIB->_str(scalar($LIB->_mod(\$x, \$y))) = 1|);
610 qq|$LIB->_str(scalar($LIB->_mod(\$x, \$y))) = 0|);
617 qq|$LIB->_str(scalar($LIB->_xor(\$x, \$y))) = 7|);
622 qq|$LIB->_str(scalar($LIB->_or(\$x, \$y))) = 7|);
627 qq|$LIB->_str(scalar($LIB->_and(\$x, \$y))) = 1|);
632 qq|$LIB->_str($LIB->_from_hex("0xFf")) = 255|);
634 qq|$LIB->_str($LIB->_from_bin("0b10101011")) = 160+11|);
636 qq|$LIB->_str($LIB->_from_oct("0100")) = 8*8|);
638 qq|$LIB->_str($LIB->_from_oct("01000")) = 8*8*8|);
640 qq|$LIB->_str($LIB->_from_oct("010001")) = 8*8*8*8+1|);
642 qq|$LIB->_str($LIB->_from_oct("010007")) = 8*8*8*8+7|);
647 qq|$LIB->_str($LIB->_from_hex($LIB->_as_hex(|
648 . qq|$LIB->_new("128")))) = 128|);
650 qq|$LIB->_str($LIB->_from_bin($LIB->_as_bin(|
651 . qq|$LIB->_new("128")))) = 128|);
653 qq|$LIB->_str($LIB->_from_oct($LIB->_as_oct(|
654 . qq|$LIB->_new("128")))) = 128|);
658 qq|$LIB->_str($LIB->_from_oct($LIB->_as_oct|
659 . qq|($LIB->_new("123456")))) = 123456|);
662 qq|$LIB->_str($LIB->_from_oct($LIB->_as_oct(|
663 . qq|$LIB->_new("123456789")))) = "123456789"|);
666 qq|$LIB->_str($LIB->_from_oct($LIB->_as_oct(|
667 . qq|$LIB->_new("1234567890123")))) = "1234567890123"|);
671 qq|$LIB->_str($LIB->_from_hex($LIB->_as_hex(|
672 . qq|$LIB->_new("$long")))) = "$long"|);
674 qq|$LIB->_str($LIB->_from_bin($LIB->_as_bin(|
675 . qq|$LIB->_new("$long")))) = "$long"|);
677 qq|$LIB->_str($LIB->_from_oct($LIB->_as_oct(|
678 . qq|$LIB->_new("$long")))) = "$long"|);
681 qq|$LIB->_str($LIB->_from_hex($LIB->_as_hex(|
682 . qq|$LIB->_new("0")))) = 0|);
684 qq|$LIB->_str($LIB->_from_bin($LIB->_as_bin(|
685 . qq|$LIB->_new("0")))) = 0|);
687 qq|$LIB->_str($LIB->_from_oct($LIB->_as_oct(|
688 . qq|$LIB->_new("0")))) = 0|);
691 qq|$LIB->_as_hex($LIB->_new("0")) = "0x0"|);
693 qq|$LIB->_as_bin($LIB->_new("0")) = "0b0"|);
695 qq|$LIB->_as_oct($LIB->_new("0")) = "00"|);
698 qq|$LIB->_as_hex($LIB->_new("12")) = "0xc"|);
700 qq|$LIB->_as_bin($LIB->_new("12")) = "0b1100"|);
702 qq|$LIB->_as_oct($LIB->_new("64")) = "0100"|);
707 qq|$LIB->_str($LIB->_1ex(0)) = "1"|);
709 qq|$LIB->_str($LIB->_1ex(1)) = "10"|);
711 qq|$LIB->_str($LIB->_1ex(2)) = "100"|);
713 qq|$LIB->_str($LIB->_1ex(12)) = "1000000000000"|);
715 qq|$LIB->_str($LIB->_1ex(16)) = "10000000000000000"|);
721 qq|$LIB->_check(\$x) = 0|);
723 qq|$LIB->_check(123) = "123 is not a reference"|);