This commit is contained in:
jianzhiyao 2021-03-08 17:47:48 +08:00
parent 82b20c585e
commit 70b011eef7

View File

@ -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")