1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
Test comprehensions that are defined above the reference root.
Because the references are not at addressable locations, the printed
references are bogus. However, this simply tests they are found, reported,
and do not cause a crash.
TODO: filter bogus references.
-- in.cue --
for key, value in { test: 1 } {
("a"): b: k1: key
("a"): b: v1: value
a: b: k2: key
a: b: v2: value
}
a: {
for key, value in { test: 1 } {
("b"): k3: key
("b"): v3: value
b: k4: key
b: v4: value
}
b: {}
}
-- out/dependencies/field --
line reference path of resulting vertex
-- out/dependencies/all --
line reference path of resulting vertex
4: key => **non-rooted**
5: value => **non-rooted**
2: key => **non-rooted**
3: value => **non-rooted**
-- out/dependencies-v3/dynamic --
line reference path of resulting vertex
4: key => **non-rooted**
5: value => **non-rooted**
2: key => **non-rooted**
3: value => **non-rooted**
11: key => **non-rooted**
12: value => **non-rooted**
9: key => **non-rooted**
10: value => **non-rooted**
-- diff/-out/dependencies-v3/dynamic<==>+out/dependencies/dynamic --
diff old new
--- old
+++ new
@@ -1,9 +1,9 @@
line reference path of resulting vertex
4: key => **non-rooted**
5: value => **non-rooted**
-11: key => **non-rooted**
-12: value => **non-rooted**
2: key => **non-rooted**
3: value => **non-rooted**
+11: key => **non-rooted**
+12: value => **non-rooted**
9: key => **non-rooted**
10: value => **non-rooted**
-- diff/dependencies/todo/p3 --
Reordering.
-- out/dependencies/dynamic --
line reference path of resulting vertex
4: key => **non-rooted**
5: value => **non-rooted**
11: key => **non-rooted**
12: value => **non-rooted**
2: key => **non-rooted**
3: value => **non-rooted**
9: key => **non-rooted**
10: value => **non-rooted**
|