Fix sort tests for one simple column
By adding expected values in equal expression.
This commit is contained in:
@@ -117,7 +117,7 @@ func TestSortUmarshaling(t *testing.T) {
|
||||
{
|
||||
"one simple column",
|
||||
`{"sort": "name DESC", "other": true}`,
|
||||
&tmp{Sorting: Sorting{Sort: SortExprSet{&SortExpr{Column: "name", Descending: true}}}, Other: true},
|
||||
&tmp{Sorting: Sorting{Sort: SortExprSet{&SortExpr{Column: "name", columns: []string{"name"}, Descending: true}}}, Other: true},
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
|
||||
Reference in New Issue
Block a user