Make ffmpeg skills compareable

This commit is contained in:
Ingo Oppermann
2023-07-06 10:27:56 +02:00
parent 604893f8bb
commit 6c2e8b0ec3
11 changed files with 489 additions and 77 deletions

View File

@@ -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)
}