message: Test support for nested expressions
diff: @@ -48,4 +48,19 @@ describe(List, () => {
  ]);
  expect(expression.evaluate(runtimeContext)).toEqual(2);
  });
  +
  + it('supports nested expressions', () => {
  + const runtimeContext = {"+": (...args: number[]) => args.reduce((a, b) => a + b)};
  + const expression = new List([
  + new Identifier("+"),
  + new Literal(1),
  + new Literal(1),
  + new List([
  + new Identifier("+"),
  + new Literal(1),
  + new Literal(1),
  + ])
  + ]);
  + expect(expression.evaluate(runtimeContext)).toEqual(4);
  + });
  });
  