. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
)

type strmap map[string]string
type rngmap map[string]memory.Range

type floatmap map[string]float64

var _ = Describe("Allocator", func() {

	var (
		a       memory.Allocator
		sizes   strmap
		weights floatmap

		shouldWork func(memory.Allocator, error) memory.Allocator
		shouldFail func(memory.Allocator, error)
	)

	BeforeEach(func() {
		sizes = strmap{}

		weights = floatmap{}

		shouldWork = func(a memory.Allocator, err error) memory.Allocator {
			Ω(a).ShouldNot(BeNil())
			Ω(err).ShouldNot(HaveOccurred())
			return a
		}