From 7536f525fa486895e71aff3da38438b8cf395283 Mon Sep 17 00:00:00 2001 From: Matthew Stobbs Date: Sat, 24 Feb 2024 15:17:44 -0700 Subject: [PATCH] fix strange merge issue --- config.go | 1 - tind_test.go | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) 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()) }