diff --git a/utils/super/unsafe_test.go b/utils/super/unsafe_test.go new file mode 100644 index 0000000..f504ffe --- /dev/null +++ b/utils/super/unsafe_test.go @@ -0,0 +1,18 @@ +package super_test + +import ( + "fmt" + "github.com/kercylan98/minotaur/utils/super" + "go.uber.org/atomic" + "testing" +) + +func TestConvert(t *testing.T) { + type B struct { + nocmp [0]func() + v atomic.Value + } + var a = atomic.NewString("hello") + var b = super.Convert[*atomic.String, *B](a) + fmt.Println(b.v.Load()) +}