# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

cases:
  - note: basic
    rego: |
      package test

      x = 1 - 2 * 3 / 4 + 2
    num_expressions: 11
    num_queries: 0
    num_statements: 0
    policy:
      - spec:
          head:
            compr:
              refr:
                var: x
                eidx: 1
              assign:
                op: =
                value:
                  arithexpr:
                    op: +
                    lhs:
                      arithexpr:
                        op: "-"
                        lhs:
                          number: 1
                          eidx: 2
                        rhs:
                          arithexpr:
                            op: "/"
                            lhs:
                              arithexpr:
                                op: "*"
                                lhs:
                                  number: 2
                                  eidx: 3
                                rhs:
                                  number: 3
                                  eidx: 4
                              eidx: 5
                            rhs:
                              number: 4
                              eidx: 6
                          eidx: 7
                      eidx: 8
                    rhs:
                      number: 2
                      eidx: 9
                  eidx: 10
          bodies: []
