From 740a5584eed81b29ebdbd013b76a8ba00bf493aa Mon Sep 17 00:00:00 2001 From: Marko Kungla Date: Tue, 21 Nov 2023 05:39:30 +0200 Subject: [PATCH] devops: test public FormatByteSlice instead of internal Signed-off-by: Marko Kungla --- nfcsdk_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nfcsdk_test.go b/nfcsdk_test.go index 0c45214..a98d505 100644 --- a/nfcsdk_test.go +++ b/nfcsdk_test.go @@ -7,13 +7,13 @@ package nfcsdk_test import ( "testing" - "github.com/happy-sdk/nfcsdk/internal/helpers" + "github.com/happy-sdk/nfcsdk" ) func TestFormatByteSlice(t *testing.T) { // Test case 1: An empty byte slice should return an empty string. emptySlice := []byte{} - result := helpers.FormatByteSlice(emptySlice) + result := nfcsdk.FormatByteSlice(emptySlice) expected := "" if result != expected { t.Errorf("Expected '%s', but got '%s'", expected, result) @@ -21,7 +21,7 @@ func TestFormatByteSlice(t *testing.T) { // Test case 2: A byte slice with some data should be formatted as expected. dataSlice := []byte{72, 101, 108, 108, 111} // ASCII values for "Hello" - result = helpers.FormatByteSlice(dataSlice) + result = nfcsdk.FormatByteSlice(dataSlice) expected = "48:65:6C:6C:6F" // Hexadecimal representation of ASCII values if result != expected { t.Errorf("Expected '%s', but got '%s'", expected, result)