You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
421 B
24 lines
421 B
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) |
|
}) |
|
}
|
|
|