1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-05 10:50:54 +00:00

update go test

This commit is contained in:
harry890829 2020-06-10 12:31:38 +08:00
parent 131748bb3d
commit d9f262e277

View File

@ -1983,13 +1983,13 @@ func TestUpdate(t *testing.T) {
"Nums": ColValue(ColBitRShift, 1), "Nums": ColValue(ColBitRShift, 1),
}) })
throwFail(t, err) throwFail(t, err)
throwFail(t, AssertIs(num, 0)) throwFail(t, AssertIs(num, 1))
num, err = qs.Filter("user_name", "slene").Update(Params{ num, err = qs.Filter("user_name", "slene").Update(Params{
"Nums": ColValue(ColBitLShift, 1), "Nums": ColValue(ColBitLShift, 1),
}) })
throwFail(t, err) throwFail(t, err)
throwFail(t, AssertIs(num, 0)) throwFail(t, AssertIs(num, 1))
num, err = qs.Filter("user_name", "slene").Update(Params{ num, err = qs.Filter("user_name", "slene").Update(Params{
"Nums": ColValue(ColBitXOR, 1), "Nums": ColValue(ColBitXOR, 1),