Debian Codegraph @

tools/trim/testdata/17.txtar

raw
1 Variant of 9, but with more complex field expressions. As before, we
2 must ignore the conjuncts from the pattern when simplifying the
3 fields, so that we don't accidentally remove the entire field.
4
5 -- a.cue --
6 d: {
7 jack: {age: 5, age: 5}
8 gill: {age: 5}
9 hilbert: {age: 5} & {age: 5}
10 [string]: {age: 5}
11 }
12 -- out/trim-v3 --
13 == a.cue
14 d: {
15 jack: _
16 gill: _
17 hilbert: _ & _
18 [string]: {age: 5}
19 }
20 -- diff/-out/trim-v3<==>+out/trim --
21 diff old new
22 --- old
23 +++ new
24 @@ -1,7 +1,7 @@
25 == a.cue
26 d: {
27 - jack: {}
28 - gill: {}
29 - hilbert: {} & {}
30 + jack: _
31 + gill: _
32 + hilbert: _ & _
33 [string]: {age: 5}
34 }
35 -- out/trim-v3-noshare --
36 == a.cue
37 d: {
38 jack: _
39 gill: _
40 hilbert: _ & _
41 [string]: {age: 5}
42 }
43 -- diff/-out/trim-v3-noshare<==>+out/trim --
44 diff old new
45 --- old
46 +++ new
47 @@ -1,7 +1,7 @@
48 == a.cue
49 d: {
50 - jack: {}
51 - gill: {}
52 - hilbert: {} & {}
53 + jack: _
54 + gill: _
55 + hilbert: _ & _
56 [string]: {age: 5}
57 }
58 -- out/trim --
59 == a.cue
60 d: {
61 jack: {}
62 gill: {}
63 hilbert: {} & {}
64 [string]: {age: 5}
65 }