archive_test.go 409 B

1234567891011121314151617181920
  1. package archive
  2. import (
  3. "github.com/smartystreets/goconvey/convey"
  4. "testing"
  5. )
  6. func TestAddit_InnerAttrSet(t *testing.T) {
  7. convey.Convey("InnerAttrSet", t, func() {
  8. add := &Addit{
  9. InnerAttr: 0,
  10. }
  11. add.InnerAttrSet(1, InnerAttrChannelReview)
  12. convey.So(add.InnerAttr, convey.ShouldEqual, 1)
  13. add.InnerAttr = 16
  14. add.InnerAttrSet(1, 3)
  15. convey.So(add.InnerAttr, convey.ShouldEqual, 24)
  16. })
  17. }