changeset 25102 | bb2f543b48b5 |
parent 25024 | 263bbed1833c |
parent 25094 | 8b99e9a8db05 |
child 25105 | 2f34746c27df |
25100:d6e7ac651973 | 25102:bb2f543b48b5 |
---|---|
591 6 |
591 6 |
592 7 |
592 7 |
593 8 |
593 8 |
594 9 |
594 9 |
595 |
595 |
596 Test opreand of '%' is optimized recursively (issue4670) |
|
597 |
|
598 $ try --optimize '8:9-8%' |
|
599 (onlypost |
|
600 (minus |
|
601 (range |
|
602 ('symbol', '8') |
|
603 ('symbol', '9')) |
|
604 ('symbol', '8'))) |
|
605 * optimized: |
|
606 (func |
|
607 ('symbol', 'only') |
|
608 (and |
|
609 (range |
|
610 ('symbol', '8') |
|
611 ('symbol', '9')) |
|
612 (not |
|
613 ('symbol', '8')))) |
|
614 * set: |
|
615 <baseset+ [8, 9]> |
|
616 8 |
|
617 9 |
|
618 |
|
596 Test the order of operations |
619 Test the order of operations |
597 |
620 |
598 $ log '7 + 9%5 + 2' |
621 $ log '7 + 9%5 + 2' |
599 7 |
622 7 |
600 2 |
623 2 |