this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

internal/core/adt: fix test

Missing role field caused the test to not test the right thing.

Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: I82f5d630c1794d6aef06cdabbc4ee754290f7e6f
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/543361
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUEcueckoo <cueckoo@cuelang.org>

+15 -14
+15 -14
cue/testdata/comprehensions/issue837.txtar
··· 35 35 _params: { 36 36 hsize: $p.hsize 37 37 } 38 + role: "admin" 38 39 }).out 39 40 40 41 role: configed.role ··· 67 68 _params.hsize.$_instances: conflicting values 1 and {$_instances:(>=0|*1)} (mismatched types int and struct): 68 69 ./in.cue:29:20 69 70 ./in.cue:35:13 70 - ./in.cue:54:12 71 - ./in.cue:55:22 71 + ./in.cue:55:12 72 + ./in.cue:56:22 72 73 _params.hsize.$_instances: conflicting values >=0 and {$_instances:(>=0|*1)} (mismatched types number and struct): 73 74 ./in.cue:29:20 74 75 ./in.cue:35:13 75 - ./in.cue:54:12 76 - ./in.cue:55:15 76 + ./in.cue:55:12 77 + ./in.cue:56:15 77 78 _params.hsize.$_instances: 2 errors in empty disjunction:: 78 79 ./in.cue:33:20 79 80 #RelabelService.out.labstr: undefined field: label: 80 - ./in.cue:50:14 81 + ./in.cue:51:14 81 82 82 83 Result: 83 84 (_|_){ ··· 158 159 // [eval] _params.hsize.$_instances: conflicting values 1 and {$_instances:(>=0|*1)} (mismatched types int and struct): 159 160 // ./in.cue:29:20 160 161 // ./in.cue:35:13 161 - // ./in.cue:54:12 162 - // ./in.cue:55:22 162 + // ./in.cue:55:12 163 + // ./in.cue:56:22 163 164 // _params.hsize.$_instances: conflicting values >=0 and {$_instances:(>=0|*1)} (mismatched types number and struct): 164 165 // ./in.cue:29:20 165 166 // ./in.cue:35:13 166 - // ./in.cue:54:12 167 - // ./in.cue:55:15 167 + // ./in.cue:55:12 168 + // ./in.cue:56:15 168 169 // _params.hsize.$_instances: 2 errors in empty disjunction:: 169 170 // ./in.cue:33:20 170 171 } ··· 185 186 // [eval] _params.hsize.$_instances: conflicting values 1 and {$_instances:(>=0|*1)} (mismatched types int and struct): 186 187 // ./in.cue:29:20 187 188 // ./in.cue:35:13 188 - // ./in.cue:54:12 189 - // ./in.cue:55:22 189 + // ./in.cue:55:12 190 + // ./in.cue:56:22 190 191 // _params.hsize.$_instances: conflicting values >=0 and {$_instances:(>=0|*1)} (mismatched types number and struct): 191 192 // ./in.cue:29:20 192 193 // ./in.cue:35:13 193 - // ./in.cue:54:12 194 - // ./in.cue:55:15 194 + // ./in.cue:55:12 195 + // ./in.cue:56:15 195 196 // _params.hsize.$_instances: 2 errors in empty disjunction:: 196 197 // ./in.cue:33:20 197 198 } ··· 209 210 // [eval] 210 211 labstr: (_|_){ 211 212 // [eval] #RelabelService.out.labstr: undefined field: label: 212 - // ./in.cue:50:14 213 + // ./in.cue:51:14 213 214 } 214 215 } 215 216 }