Skip to content

Commit de5d0cf

Browse files
committed
cue/testdata: update todos on various tests
Some of the test results were changed without updating the todos accordingly. Issue #2884 Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I781c9dd6afab7ac9784751a0288db9e520cf4ad4 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1193841 Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
1 parent 1711c14 commit de5d0cf

File tree

5 files changed

+14
-18
lines changed

5 files changed

+14
-18
lines changed

cue/testdata/comprehensions/pushdown.txtar

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1720,10 +1720,6 @@ Retain: 101
17201720
Unifications: 406
17211721
Conjuncts: 652
17221722
Disjuncts: 476
1723-
-- diff/todo/p1 --
1724-
embed.fail1.p: error not propagated to parent.
1725-
provideIncompleteSuccess.t2.a.c.d: missing error.
1726-
A bit esoteric, but should work.
17271723
-- diff/todo/p2 --
17281724
Missing empty disjunction message.
17291725
provideIncompleteSuccess.t2.a.c.d: missing error: probably correct.

cue/testdata/cycle/comprehension.txtar

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,11 +1506,9 @@ Unifications: 832
15061506
Conjuncts: 2525
15071507
Disjuncts: 1404
15081508
-- diff/todo/p0 --
1509-
issue779.X: invalid cycle error.
1510-
selfReferential.list.panels: invalid incomplete error.
1511-
selfReferential.acrossOr: many errors
1512-
issue1666.*.f2.a.t: invalid structural cycle
1513-
issue1881: differences
1509+
selfReferential.list.panels: invalid incomplete error: related to "or" builtin
1510+
selfReferential.acrossOr: many errors: related to "or" builtin
1511+
issue1881: differences: related to "or" builtin
15141512
...
15151513
-- out/eval --
15161514
Errors:

cue/testdata/cycle/constraints.txtar

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -933,8 +933,8 @@ diff old new
933933
}
934934
}
935935
}
936-
-- diff/todo/p1 --
937-
issue1503: cycle detected too late
936+
-- diff/todo/p2 --
937+
issue1503: cycle detected too late (but not super late)
938938
selfTriggerCycle.t1.a.b.b: cycle detected slightly too late
939939
-- out/eval --
940940
Errors:

cue/testdata/cycle/structural.txtar

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2599,18 +2599,22 @@ Reducer:
25992599
a: c: r
26002600
-- diff/todo/p2 --
26012601
TODO(share): fix the following bug once we have structure sharing.
2602-
b4.b: Structural error converted to eval error.
26032602
d3.config: should structural cycle be reported?
2604-
b7.b.0.0: sructural cycle nested one too deep.
2605-
b12b: structural cycle nested too deep.
26062603
p3.a.a: field not allowed incorrect?
2607-
p2.#T.a.b.link: error not propagated up. Could be a structure sharing
2608-
artifact, though, in which case it is probably okay.
2604+
p2.a.a.one.link.a.two.link: error not propagated up. Could be a structure
2605+
sharing artifact, though, in which case it is probably okay.
26092606
-- diff/todo/p3 --
26102607
n4: Reordering.
2608+
b12b: reported at correct level, but investigate if it is not processing
2609+
too deep anyway.
26112610
-- diff/explanation --
26122611
Structural cycles are reported in all chains. compared to old implementation.
26132612
d3.config: reports cycle at correct position.
2613+
b4.b: Structural error converted to eval error: there is both a structural and
2614+
eval error at this field. The newly reported error is correct.
2615+
b7.b.0.0: structural cycle nested one too deep: the eval error takes precedence.
2616+
The cycle is reported at the correct level according to the spec.
2617+
26142618
-- out/eval --
26152619
Errors:
26162620
a1.f.0: structural cycle

cue/testdata/eval/conjuncts.txtar

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,6 @@ Retain: 22
240240
Unifications: 45
241241
Conjuncts: 135
242242
Disjuncts: 86
243-
-- diff/todo/p0 --
244-
conjunct.t3: Unexpanded disjunction.
245243
-- diff/todo/p3 --
246244
Missing error position.
247245
-- diff/explanation --

0 commit comments

Comments
 (0)