arithmetic_expression_a.gravity 209 B

123456789101112
  1. #unittest {
  2. name: "Arithmetic expression (+,-) with multiple subnodes, testing operator execution order.";
  3. error: NONE;
  4. result: 5;
  5. };
  6. func main() {
  7. var a = 5;
  8. var b = 2;
  9. var c = 2;
  10. return a - b + c;
  11. }