go-common/app/job/main/ugcpay/model/model_test.go

25 lines
421 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package model
import (
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func TestElecUserSetting(t *testing.T) {
Convey("", t, func() {
data := &DBOldElecUserSetting{
MID: 46333,
SettingID: 1,
Status: 1,
}
So(data.BitValue(), ShouldEqual, 0x01)
data = &DBOldElecUserSetting{
MID: 46333,
SettingID: 2,
Status: 1,
}
So(data.BitValue(), ShouldEqual, 0x02)
})
}