cuelang.org/go@v0.13.0/tools/trim/testdata/26.txtar (about) 1 This test demonstrates that it is only the "root" conjuncts within a 2 pattern that need to be ignored for the purpose of identifying 3 redundant conjuncts, and not any of their children. 4 5 Thus `b` can be simplified, provided `b.w` survives, which is enough 6 to ensure it matches the pattern. 7 8 See also 61. 9 10 -- a.cue -- 11 a: [string]: { 12 x: y: z: 5 13 } 14 b: w: x: y: {} 15 b: a 16 -- out/trim-v3 -- 17 == a.cue 18 a: [string]: { 19 x: y: z: 5 20 } 21 b: w: _ 22 b: a 23 -- diff/-out/trim-v3<==>+out/trim -- 24 diff old new 25 --- old 26 +++ new 27 @@ -2,5 +2,5 @@ 28 a: [string]: { 29 x: y: z: 5 30 } 31 -b: w: x: y: {} 32 +b: w: _ 33 b: a 34 -- out/trim-v3-noshare -- 35 == a.cue 36 a: [string]: { 37 x: y: z: 5 38 } 39 b: w: _ 40 b: a 41 -- diff/-out/trim-v3-noshare<==>+out/trim -- 42 diff old new 43 --- old 44 +++ new 45 @@ -2,5 +2,5 @@ 46 a: [string]: { 47 x: y: z: 5 48 } 49 -b: w: x: y: {} 50 +b: w: _ 51 b: a 52 -- out/trim -- 53 == a.cue 54 a: [string]: { 55 x: y: z: 5 56 } 57 b: w: x: y: {} 58 b: a