(set: BoxedRuleSet, expr: BoxedExpression)
| 106 | return steps.length ? steps[steps.length - 1].value : expr; |
| 107 | }; |
| 108 | const trailingBecause = (set: BoxedRuleSet, expr: BoxedExpression) => { |
| 109 | const steps = replace(expr, set, REPLACE_OPTS); |
| 110 | return steps.length ? steps[steps.length - 1].because : null; |
| 111 | }; |
| 112 | |
| 113 | it('multi-fire + head change: same final value as the linear scan', () => { |
| 114 | // F(0) → F(1) → F(2) → G(99) |
no test coverage detected