| # DO NOT EDIT; generated by go run testdata/gen.go |
| # |
| #name: resolved self-reference cycles: Issue 19 |
| #evalPartial |
| -- in.cue -- |
| // CUE knows how to resolve the following: |
| x: y + 100 |
| y: x - 100 |
| x: 200 |
| |
| z1: z2 + 1 |
| z2: z3 + 2 |
| z3: z1 - 3 |
| z3: 8 |
| |
| // TODO: extensive tests with disjunctions. |
| -- out/def -- |
| // CUE knows how to resolve the following: |
| x: 200 |
| y: 100 |
| z1: 11 |
| z2: 10 |
| z3: 8 |
| -- out/export -- |
| // CUE knows how to resolve the following: |
| x: 200 |
| y: 100 |
| z1: 11 |
| z2: 10 |
| z3: 8 |
| -- out/yaml -- |
| x: 200 |
| y: 100 |
| z1: 11 |
| z2: 10 |
| z3: 8 |
| -- out/json -- |
| {"x":200,"y":100,"z1":11,"z2":10,"z3":8} |
| -- out/legacy-debug -- |
| <0>{x: 200, y: 100, z1: 11, z2: 10, z3: 8} |