Skip to content

Commit df9468e

Browse files
committed
internal/core/export: verify issue 349 is fixed
Export implements topological sort on fields. Fixes #349 Change-Id: I5cae07fa99cca83d839f89a79b20fd1ac1d93303 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/7043 Reviewed-by: CUE cueckoo <[email protected]> Reviewed-by: Marcel van Lohuizen <[email protected]>
1 parent a6ce869 commit df9468e

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

cue/testdata/eval/issue349.txtar

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
-- in.cue --
2+
ex: {
3+
"aaa": "aaa",
4+
"list": "list",
5+
"zzz": "zzz",
6+
"AAA": "AAA",
7+
"html": "html",
8+
"HTML": "html",
9+
"ZZZ": "ZZZ",
10+
"Html": "html",
11+
}
12+
-- out/eval --
13+
(struct){
14+
ex: (struct){
15+
aaa: (string){ "aaa" }
16+
list: (string){ "list" }
17+
zzz: (string){ "zzz" }
18+
AAA: (string){ "AAA" }
19+
html: (string){ "html" }
20+
HTML: (string){ "html" }
21+
ZZZ: (string){ "ZZZ" }
22+
Html: (string){ "html" }
23+
}
24+
}
25+
-- out/compile --
26+
--- in.cue
27+
{
28+
ex: {
29+
aaa: "aaa"
30+
list: "list"
31+
zzz: "zzz"
32+
AAA: "AAA"
33+
html: "html"
34+
HTML: "html"
35+
ZZZ: "ZZZ"
36+
Html: "html"
37+
}
38+
}

0 commit comments

Comments
 (0)