Skip to content

Commit

Permalink
internal/core/export: verify issue 349 is fixed
Browse files Browse the repository at this point in the history
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 <cueckoo@gmail.com>
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
  • Loading branch information
mpvl committed Sep 12, 2020
1 parent a6ce869 commit df9468e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions cue/testdata/eval/issue349.txtar
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
-- in.cue --
ex: {
"aaa": "aaa",
"list": "list",
"zzz": "zzz",
"AAA": "AAA",
"html": "html",
"HTML": "html",
"ZZZ": "ZZZ",
"Html": "html",
}
-- out/eval --
(struct){
ex: (struct){
aaa: (string){ "aaa" }
list: (string){ "list" }
zzz: (string){ "zzz" }
AAA: (string){ "AAA" }
html: (string){ "html" }
HTML: (string){ "html" }
ZZZ: (string){ "ZZZ" }
Html: (string){ "html" }
}
}
-- out/compile --
--- in.cue
{
ex: {
aaa: "aaa"
list: "list"
zzz: "zzz"
AAA: "AAA"
html: "html"
HTML: "html"
ZZZ: "ZZZ"
Html: "html"
}
}

0 comments on commit df9468e

Please sign in to comment.