ccache/item_test.go
2014-10-25 07:46:18 +07:00

19 lines
325 B
Go

package ccache
import (
. "github.com/karlseguin/expect"
"testing"
)
type ItemTests struct{}
func Test_Item(t *testing.T) {
Expectify(new(ItemTests), t)
}
func (i *ItemTests) Promotability() {
item := &Item{promotions: 4}
Expect(item.shouldPromote(5)).To.Equal(true)
Expect(item.shouldPromote(5)).To.Equal(false)
}