Initial pass at leveraging generics
Still need to replace the linked list with a generic linked list and want to remove the dependency on the expect package.
This commit is contained in:
@@ -14,7 +14,7 @@ func Test_Configuration(t *testing.T) {
|
||||
|
||||
func (_ *ConfigurationTests) BucketsPowerOf2() {
|
||||
for i := uint32(0); i < 31; i++ {
|
||||
c := Configure().Buckets(i)
|
||||
c := Configure[int]().Buckets(i)
|
||||
if i == 1 || i == 2 || i == 4 || i == 8 || i == 16 {
|
||||
Expect(c.buckets).ToEqual(int(i))
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user