github.com/solo-io/cue@v0.4.7/cue/testdata/basicrewrite/020_resolved_self-reference_cycles__Issue_19.txtar (about)

     1  # DO NOT EDIT; generated by go run testdata/gen.go
     2  #
     3  #name: resolved self-reference cycles: Issue 19
     4  #evalPartial
     5  -- in.cue --
     6  	// CUE knows how to resolve the following:
     7  x: y + 100
     8  y: x - 100
     9  x: 200
    10  
    11  z1: z2 + 1
    12  z2: z3 + 2
    13  z3: z1 - 3
    14  z3: 8
    15  
    16  // TODO: extensive tests with disjunctions.
    17  -- out/def --
    18  	// CUE knows how to resolve the following:
    19  x:  200
    20  y:  100
    21  z1: 11
    22  z2: 10
    23  z3: 8
    24  -- out/export --
    25  	// CUE knows how to resolve the following:
    26  x:  200
    27  y:  100
    28  z1: 11
    29  z2: 10
    30  z3: 8
    31  -- out/yaml --
    32  x: 200
    33  y: 100
    34  z1: 11
    35  z2: 10
    36  z3: 8
    37  -- out/json --
    38  {"x":200,"y":100,"z1":11,"z2":10,"z3":8}
    39  -- out/legacy-debug --
    40  <0>{x: 200, y: 100, z1: 11, z2: 10, z3: 8}
    41  -- out/compile --
    42  --- in.cue
    43  {
    44    x: (〈0;y〉 + 100)
    45    y: (〈0;x〉 - 100)
    46    x: 200
    47    z1: (〈0;z2〉 + 1)
    48    z2: (〈0;z3〉 + 2)
    49    z3: (〈0;z1〉 - 3)
    50    z3: 8
    51  }
    52  -- out/eval --
    53  (struct){
    54    x: (int){ 200 }
    55    y: (int){ 100 }
    56    z1: (int){ 11 }
    57    z2: (int){ 10 }
    58    z3: (int){ 8 }
    59  }