From 620c0c2a0b16e675380cdaafb1e2b34f5d744dfa Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Tue, 13 Feb 2024 08:40:54 -0800 Subject: [PATCH] initial commits --- appendbytes_test.go | 8 ++++++++ appendstring_test.go | 8 ++++++++ 2 files changed, 16 insertions(+) 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!",