mirror of
https://github.com/datarhei/core.git
synced 2025-10-26 01:10:30 +08:00
Make ffmpeg skills compareable
This commit is contained in:
@@ -13,3 +13,15 @@ func TestCopy(t *testing.T) {
|
||||
|
||||
require.Equal(t, []string{"a", "b", "c"}, b)
|
||||
}
|
||||
|
||||
func (a String) Clone() String {
|
||||
return String(string(a))
|
||||
}
|
||||
|
||||
func TestCopyDeep(t *testing.T) {
|
||||
a := []String{"a", "b", "c"}
|
||||
|
||||
b := CopyDeep[String](a)
|
||||
|
||||
require.Equal(t, []String{"a", "b", "c"}, b)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user