update go test

This commit is contained in:
harry890829 2020-06-10 12:31:38 +08:00
parent 131748bb3d
commit d9f262e277
1 changed files with 2 additions and 2 deletions

View File

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