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.
20 lines
409 B
20 lines
409 B
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) |
|
}) |
|
}
|
|
|