Skip to content

Commit 7e29e3d

Browse files
committed
pkg/list: re-test with CUE_UPDATE=1
https://cuelang.org/cl/1199602 added a new testdata txtar file which passed the tests but did not include some of the informational but non-essential diff txtar entries. Note that CI does enforce zero changes after running all tests and code generators, but it doesn't use CUE_UPDATE=1, as that would require running all tests twice, which could be pretty slow. Signed-off-by: Daniel Martí <[email protected]> Change-Id: Iba51aa112c24e8a032a38979f671498945e1b825 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1200091 TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]> Reviewed-by: Matthew Sackman <[email protected]>
1 parent 5409884 commit 7e29e3d

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

pkg/list/testdata/matchn_err.txtar

+35
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,41 @@ t1: {
4949
#TOO: {
5050
too: int
5151
}
52+
-- diff/-out/list-v3<==>+out/list --
53+
diff old new
54+
--- old
55+
+++ new
56+
@@ -1,30 +1,24 @@
57+
Errors:
58+
t1.l1: invalid value [1,2,3,"str",[1],{foo:1}] (does not satisfy list.MatchN(>0, [string])): number of matched elements is 0: does not satisfy >0:
59+
./in.cue:6:6
60+
- ./in.cue:4:12
61+
./in.cue:6:18
62+
t1.l2: invalid value [1,2,3,"str",[1],{foo:1}] (does not satisfy list.MatchN(1, number)): number of matched elements is 3: does not satisfy 1:
63+
./in.cue:7:6
64+
- ./in.cue:4:12
65+
./in.cue:7:18
66+
./in.cue:7:21
67+
t1.l3: invalid value [1,2,3,"str",[1],{foo:1}] (does not satisfy list.MatchN(>1, string)): number of matched elements is 1: does not satisfy >1:
68+
./in.cue:8:6
69+
- ./in.cue:4:12
70+
./in.cue:8:18
71+
./in.cue:8:22
72+
t1.l4: invalid value [1,2,3,"str",[1],{foo:1}] (does not satisfy list.MatchN(0, number)): number of matched elements is 3: does not satisfy 0:
73+
./in.cue:9:6
74+
- ./in.cue:4:12
75+
./in.cue:9:18
76+
./in.cue:9:21
77+
t1.l5: invalid value [1,2,3,"str",[1],{foo:1}] (does not satisfy list.MatchN(string, [int])): number of matched elements is 1: does not satisfy string:
78+
./in.cue:10:6
79+
- ./in.cue:4:12
80+
./in.cue:10:18
81+
t1.l6: invalid value [1,2,3,"str",[1],{foo:1}] (does not satisfy list.MatchN(>0, {too:int})): number of matched elements is 0: does not satisfy >0:
82+
./in.cue:11:6
83+
- ./in.cue:4:12
84+
./in.cue:11:18
85+
86+
Result:
5287
-- out/list --
5388
Errors:
5489
t1.l1: invalid value [1,2,3,"str",[1],{foo:1}] (does not satisfy list.MatchN(>0, [string])): number of matched elements is 0: does not satisfy >0:

0 commit comments

Comments
 (0)