diff --git a/config.go b/config.go index eef11dc..5bf0912 100644 --- a/config.go +++ b/config.go @@ -51,7 +51,6 @@ func New() *Config { // NewFrom will build a configuration from a byte slice. Because this is a // byte slice, the provided input doesn't matter, it's more about the length, -func NewConfigFrom(in []byte) *Config { func NewFrom(in []byte) *Config { c := New() c.size = len(in) diff --git a/tind_test.go b/tind_test.go index 5e90590..23f42e5 100644 --- a/tind_test.go +++ b/tind_test.go @@ -35,6 +35,8 @@ func Test_GenTinD_With_VaryingSizes(t *testing.T) { } for _, v := range tests { tt := New().WithRuneset(v.runes).WithSize(v.size).Gen() + t.Logf("Generated string: %s", tt.String()) + t.Logf("Generated bytes: %v", tt.Bytes()) if len(tt.Runes()) != v.size { t.Errorf("config set size to %d, but generated an id of size %d. id: %s", v.size, len([]rune(tt.String())), tt.String()) }