Neos\Eel\Tests\Unit\AbstractEvaluatorTest::calculationExpressions PHP Method

calculationExpressions() public method

public calculationExpressions ( ) : array
return array
    public function calculationExpressions()
    {
        $c = new Context(['answer' => 42, 'deeply' => ['nested' => ['value' => 2]]]);
        return [['1 + 1', $c, 2], ['1 - 1', $c, 0], ['2*2', $c, 4], ['1 + 2 * 3 + 4 / 2 + 2', $c, 11], ['(1 + 2) * 3 + 4 / (2 + 2)', $c, 10], ['2* answer', $c, 84], ['deeply.nested.value - 1', $c, 1]];
    }