summaryrefslogtreecommitdiff
path: root/internal/file/file_test.go
blob: 22610ea6943b27521580cca134f79ac8b1e04bc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package file

import (
	"ior/internal/types"
	"testing"
)

func TestStringValue(t *testing.T) {
	var array [128]byte
	copy(array[:], "test string")

	if str := types.StringValue(array[:]); str != "test string" {
		t.Errorf("epxected 'test string' but got '%s' with bytes '%v'", str, []byte(str))
	}
}