-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cue: add a regression test for a disjunction bug fixed in evalv3
As can be seen in the diff, the old evaluator resulted in the fields: h: a: v: *"a" | "b" | "c" h: b: v: *"a" | "b" | "c" h: c: v: *"a" | *"b" | *"c" Which, when exporting, would understandably result in an error: h.c.v: incomplete value "a" | "b" | "c" The new evaluator correctly keeps "a" as the only default in all fields: h: a: v: *"a" | "b" | "c" h: b: v: *"a" | "b" | "c" h: c: v: *"a" | "b" | "c" Closes #770. Signed-off-by: Daniel Martí <[email protected]> Change-Id: Id3e5e9c522307900331dc0fa29b936f773750497 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1195003 Reviewed-by: Paul Jolly <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
- Loading branch information
Showing
1 changed file
with
121 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters