...

Text file src/cuelang.org/go/cue/testdata/basicrewrite/020_resolved_self-reference_cycles__Issue_19.txtar

Documentation: cuelang.org/go/cue/testdata/basicrewrite

     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:
     7x: y + 100
     8y: x - 100
     9x: 200
    10
    11z1: z2 + 1
    12z2: z3 + 2
    13z3: z1 - 3
    14z3: 8
    15
    16// TODO: extensive tests with disjunctions.
    17-- out/def --
    18	// CUE knows how to resolve the following:
    19x:  200
    20y:  100
    21z1: 11
    22z2: 10
    23z3: 8
    24-- out/export --
    25	// CUE knows how to resolve the following:
    26x:  200
    27y:  100
    28z1: 11
    29z2: 10
    30z3: 8
    31-- out/yaml --
    32x: 200
    33y: 100
    34z1: 11
    35z2: 10
    36z3: 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/stats --
    53Leaks:  0
    54Freed:  6
    55Reused: 2
    56Allocs: 4
    57Retain: 3
    58
    59Unifications: 6
    60Conjuncts:    6
    61Disjuncts:    8
    62-- out/eval --
    63(struct){
    64  x: (int){ 200 }
    65  y: (int){ 100 }
    66  z1: (int){ 11 }
    67  z2: (int){ 10 }
    68  z3: (int){ 8 }
    69}

View as plain text