summaryrefslogtreecommitdiff
path: root/internal/utils/bytes_test.go
blob: af1f32d07024dd474f0b1e94b0e76e0606725684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package utils

import (
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestBytesJoin(t *testing.T) {
	a := []byte("a")
	b := []byte("b")

	assert.Equal(t, "ab", string(BytesJoin(a, b)))
	assert.Equal(t, "a", string(BytesJoin(a)))
	assert.Equal(t, "", string(BytesJoin()))
}