this repo has no description
0
fork

Configure Feed

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

pkg/list/testdata: add regression test for issue #4171

The error message for list.IsSorted with list.Descending repeats
the error path, e.g. "Descending.less: Descending.less:".

For #4171.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Ie7bb2ba7fa528c0d7aa05272fac4499a60e1aa97
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1231146
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Matthew Sackman <matthew@cue.works>

+17
+17
pkg/list/testdata/issue4171.txtar
··· 1 + # Verify that error messages for list builtins don't repeat error paths. 2 + # 3 + # Issue #4171 4 + 5 + -- in.cue -- 6 + import "list" 7 + 8 + X: list.IsSorted(list.Descending) 9 + X: ["A", "B", "C"] 10 + -- out/list-v3 -- 11 + Errors: 12 + X: invalid value ["A","B","C"] (does not satisfy list.IsSorted({T:number | string,x:number | string,y:number | string,less:_|_(Descending.less: Descending.less: unresolved disjunction number | string (type (string|number)) (and 1 more errors))})): 13 + ./in.cue:3:4 14 + ./in.cue:4:4 15 + 16 + Result: 17 + X: _|_ // X: invalid value ["A","B","C"] (does not satisfy list.IsSorted({T:number | string,x:number | string,y:number | string,less:_|_(Descending.less: Descending.less: unresolved disjunction number | string (type (string|number)) (and 1 more errors))}))