mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-17 11:12:28 +08:00
fix the bug in cloning slices (#129)
* test: add test cases for cloning slices. * fix: fix the bug in cloning slices.
This commit is contained in:
@@ -337,6 +337,7 @@ func TestDeepClone(t *testing.T) {
|
||||
Nil: nil,
|
||||
// unexported: "can't be cloned",
|
||||
},
|
||||
[]interface{}{1, &Struct{Str: "test"}, Struct{Str: "test2"}},
|
||||
}
|
||||
|
||||
for i, item := range cases {
|
||||
|
||||
Reference in New Issue
Block a user