github.com/AlpineAIO/wails/v2@v2.0.0-beta.32.0.20240505041856-1047a8fa5fef/internal/go-common-file-dialog/util/util_test.go (about)

     1  package util
     2  
     3  import (
     4  	"github.com/go-ole/go-ole"
     5  	"testing"
     6  )
     7  
     8  func TestStringToUUID(t *testing.T) {
     9  	generated := *StringToUUID("TestTestTest")
    10  	expected := *ole.NewGUID("7933985F-2C87-5A5B-A26E-5D0326829AC2")
    11  	if generated != expected {
    12  		t.Errorf("not equal. expected %s, found %s", expected.String(), generated.String())
    13  	}
    14  }