Show More
@@ -2094,7 +2094,6 b' methods = {' | |||||
2094 | "ancestor": ancestorspec, |
|
2094 | "ancestor": ancestorspec, | |
2095 | "parent": parentspec, |
|
2095 | "parent": parentspec, | |
2096 | "parentpost": p1, |
|
2096 | "parentpost": p1, | |
2097 | "only": only, |
|
|||
2098 | } |
|
2097 | } | |
2099 |
|
2098 | |||
2100 | def optimize(x, small): |
|
2099 | def optimize(x, small): |
@@ -615,6 +615,24 b" Test opreand of '%' is optimized recursi" | |||||
615 | <baseset+ [8, 9]> |
|
615 | <baseset+ [8, 9]> | |
616 | 8 |
|
616 | 8 | |
617 | 9 |
|
617 | 9 | |
|
618 | $ try --optimize '(9)%(5)' | |||
|
619 | (only | |||
|
620 | (group | |||
|
621 | ('symbol', '9')) | |||
|
622 | (group | |||
|
623 | ('symbol', '5'))) | |||
|
624 | * optimized: | |||
|
625 | (func | |||
|
626 | ('symbol', 'only') | |||
|
627 | (list | |||
|
628 | ('symbol', '9') | |||
|
629 | ('symbol', '5'))) | |||
|
630 | * set: | |||
|
631 | <baseset+ [8, 9, 2, 4]> | |||
|
632 | 2 | |||
|
633 | 4 | |||
|
634 | 8 | |||
|
635 | 9 | |||
618 |
|
636 | |||
619 | Test the order of operations |
|
637 | Test the order of operations | |
620 |
|
638 |
General Comments 0
You need to be logged in to leave comments.
Login now