From a134cb8d1754f4d346324d3c693eacc0f492a47e Mon Sep 17 00:00:00 2001 From: harry890829 Date: Thu, 11 Jun 2020 23:45:06 +0800 Subject: [PATCH] update go test --- orm/orm_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/orm/orm_test.go b/orm/orm_test.go index 04825c07..73317c38 100644 --- a/orm/orm_test.go +++ b/orm/orm_test.go @@ -1983,13 +1983,13 @@ func TestUpdate(t *testing.T) { "Nums": ColValue(ColBitRShift, 1), }) throwFail(t, err) - throwFail(t, AssertIs(num, 1)) + throwFail(t, AssertIs(num, 0)) num, err = qs.Filter("user_name", "slene").Update(Params{ "Nums": ColValue(ColBitLShift, 1), }) throwFail(t, err) - throwFail(t, AssertIs(num, 1)) + throwFail(t, AssertIs(num, 0)) num, err = qs.Filter("user_name", "slene").Update(Params{ "Nums": ColValue(ColBitXOR, 1), @@ -2006,7 +2006,7 @@ func TestUpdate(t *testing.T) { user := User{UserName: "slene"} err = dORM.Read(&user, "UserName") throwFail(t, err) - throwFail(t, AssertIs(user.Nums, 30)) + throwFail(t, AssertIs(user.Nums, 1)) } func TestDelete(t *testing.T) {