blob: c1a675db76d42afdb17d2537c0fb385bd80966d9 [file] [log] [blame]
# DO NOT EDIT; generated by go run testdata/gen.go
#
#name: field comprehension
#evalFull
-- in.cue --
a: {
for k, v in b
if k < "d"
if v > b.a {
"\(k)": v
}
}
b: {
a: 1
b: 2
c: 3
d: 4
}
c: {
for k, v in b
if k < "d"
if v > b.a {
"\(k)": v
}
}
-- out/def --
a: {
b: 2
c: 3
}
b: {
a: 1
b: 2
c: 3
d: 4
}
c: {
b: 2
c: 3
}
-- out/export --
a: {
b: 2
c: 3
}
b: {
a: 1
b: 2
c: 3
d: 4
}
c: {
b: 2
c: 3
}
-- out/yaml --
a:
b: 2
c: 3
b:
a: 1
b: 2
c: 3
d: 4
c:
b: 2
c: 3
-- out/json --
{"a":{"b":2,"c":3},"b":{"a":1,"b":2,"c":3,"d":4},"c":{"b":2,"c":3}}
-- out/legacy-debug --
<0>{a: <1>{b: 2, c: 3}, b: <2>{a: 1, b: 2, c: 3, d: 4}, c: <3>{b: 2, c: 3}}