Skip to content

Commit

Permalink
pkg/list: re-test with CUE_UPDATE=1
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
mvdan committed Aug 28, 2024
1 parent 5409884 commit 7e29e3d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pkg/list/testdata/matchn_err.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,41 @@ t1: {
#TOO: {
too: int
}
-- diff/-out/list-v3<==>+out/list --
diff old new
--- old
+++ new
@@ -1,30 +1,24 @@
Errors:
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:
./in.cue:6:6
- ./in.cue:4:12
./in.cue:6:18
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:
./in.cue:7:6
- ./in.cue:4:12
./in.cue:7:18
./in.cue:7:21
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:
./in.cue:8:6
- ./in.cue:4:12
./in.cue:8:18
./in.cue:8:22
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:
./in.cue:9:6
- ./in.cue:4:12
./in.cue:9:18
./in.cue:9:21
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:
./in.cue:10:6
- ./in.cue:4:12
./in.cue:10:18
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:
./in.cue:11:6
- ./in.cue:4:12
./in.cue:11:18

Result:
-- out/list --
Errors:
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:
Expand Down

0 comments on commit 7e29e3d

Please sign in to comment.