mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 06:20:48 +08:00
15 lines
332 B
Go
15 lines
332 B
Go
package util
|
|
|
|
import (
|
|
"github.com/go-ole/go-ole"
|
|
"testing"
|
|
)
|
|
|
|
func TestStringToUUID(t *testing.T) {
|
|
generated := *StringToUUID("TestTestTest")
|
|
expected := *ole.NewGUID("7933985F-2C87-5A5B-A26E-5D0326829AC2")
|
|
if generated != expected {
|
|
t.Errorf("not equal. expected %s, found %s", expected.String(), generated.String())
|
|
}
|
|
}
|