Fix sort tests for one simple column

By adding expected values in equal expression.
This commit is contained in:
Vivek Patel
2022-12-07 10:43:56 +01:00
committed by Jože Fortun
parent b181c061a4
commit 2f854e9b81
+1 -1
View File
@@ -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 {