fix UT
This commit is contained in:
parent
82b20c585e
commit
70b011eef7
@ -1285,8 +1285,8 @@ func TestValuesList(t *testing.T) {
|
|||||||
throwFail(t, err)
|
throwFail(t, err)
|
||||||
throwFail(t, AssertIs(num, 3))
|
throwFail(t, AssertIs(num, 3))
|
||||||
if num == 3 {
|
if num == 3 {
|
||||||
throwFail(t, AssertIs(list[0][1], "slene"))
|
throwFail(t, AssertIs(list[0][1], "slene")) //username
|
||||||
throwFail(t, AssertIs(list[2][11], nil))
|
throwFail(t, AssertIs(list[2][10], nil)) //profile
|
||||||
}
|
}
|
||||||
|
|
||||||
num, err = qs.OrderBy("Id").ValuesList(&list, "UserName", "Profile__Age")
|
num, err = qs.OrderBy("Id").ValuesList(&list, "UserName", "Profile__Age")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user