initial commits

master
Charles Iliya Krempeaux 2024-02-13 08:40:54 -08:00
parent 4598abae77
commit 620c0c2a0b
2 changed files with 16 additions and 0 deletions

View File

@ -15,6 +15,14 @@ func TestAppendBytes(t *testing.T) {
Slice []byte Slice []byte
Expected []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: "), Bytes: []byte("Hello world! 🙂 Take a look at this: "),
Slice: []byte("This is NOT <b>bold</b>!"), Slice: []byte("This is NOT <b>bold</b>!"),

View File

@ -15,6 +15,14 @@ func TestAppendString(t *testing.T) {
String string String string
Expected []byte 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: "), Bytes: []byte("Hello world! 🙂 Take a look at this: "),
String: "This is NOT <b>bold</b>!", String: "This is NOT <b>bold</b>!",