go-common/app/admin/main/videoup/model/archive/archive_test.go
2019-04-22 18:49:16 +08:00

21 lines
409 B
Go

package archive
import (
"github.com/smartystreets/goconvey/convey"
"testing"
)
func TestAddit_InnerAttrSet(t *testing.T) {
convey.Convey("InnerAttrSet", t, func() {
add := &Addit{
InnerAttr: 0,
}
add.InnerAttrSet(1, InnerAttrChannelReview)
convey.So(add.InnerAttr, convey.ShouldEqual, 1)
add.InnerAttr = 16
add.InnerAttrSet(1, 3)
convey.So(add.InnerAttr, convey.ShouldEqual, 24)
})
}