this repo has no description
0
fork

Configure Feed

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

cue: add test for filling empty path

Change-Id: Ib38fc0e08453931c80b41b11e1308ede58b38cdb
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/9385
Reviewed-by: CUE cueckoo <cueckoo@gmail.com>
Reviewed-by: Paul Jolly <paul@myitcv.org.uk>

+8
+8
cue/types_test.go
··· 1129 1129 out: ` 1130 1130 {foo: {x: 1, bar: baz: 1}} 1131 1131 `, 1132 + }, { 1133 + // empty path 1134 + in: ` 1135 + _ 1136 + #foo: 1 1137 + `, 1138 + x: ast.NewIdent("#foo"), 1139 + out: `{1, #foo: 1}`, 1132 1140 }} 1133 1141 1134 1142 for _, tc := range testCases {