diff --git a/appendbytes_test.go b/appendbytes_test.go index 0ef8a2b..1c9b9a3 100644 --- a/appendbytes_test.go +++ b/appendbytes_test.go @@ -15,6 +15,14 @@ func TestAppendBytes(t *testing.T) { Slice []byte Expected []byte }{ + { + Bytes: []byte("Hello world! 🙂 Take a look at this: "), + Slice: []byte(""), + Expected: []byte("Hello world! 🙂 Take a look at this: "), + }, + + + { Bytes: []byte("Hello world! 🙂 Take a look at this: "), Slice: []byte("This is NOT bold!"), diff --git a/appendstring_test.go b/appendstring_test.go index 2b32cd9..91166cb 100644 --- a/appendstring_test.go +++ b/appendstring_test.go @@ -15,6 +15,14 @@ func TestAppendString(t *testing.T) { String string Expected []byte }{ + { + Bytes: []byte("Hello world! 🙂 Take a look at this: "), + String: "", + Expected: []byte("Hello world! 🙂 Take a look at this: "), + }, + + + { Bytes: []byte("Hello world! 🙂 Take a look at this: "), String: "This is NOT bold!",