diff --git a/nfcsdk_test.go b/nfcsdk_test.go index a98d505..1af0251 100644 --- a/nfcsdk_test.go +++ b/nfcsdk_test.go @@ -2,18 +2,16 @@ // Licensed under the Apache License, Version 2.0. // See the LICENSE file. -package nfcsdk_test +package nfcsdk import ( "testing" - - "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 := nfcsdk.FormatByteSlice(emptySlice) + result := FormatByteSlice(emptySlice) expected := "" if result != expected { t.Errorf("Expected '%s', but got '%s'", expected, result) @@ -21,7 +19,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 = nfcsdk.FormatByteSlice(dataSlice) + result = 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)