mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-08 23:40:40 +02:00
@@ -38,13 +38,13 @@ func TestSymDiff(t *testing.T) {
|
||||
sp2 := []*StructWithSlice{xb, xe}
|
||||
|
||||
for i, test := range []struct {
|
||||
s1 interface{}
|
||||
s2 interface{}
|
||||
expected interface{}
|
||||
s1 any
|
||||
s2 any
|
||||
expected any
|
||||
}{
|
||||
{[]string{"a", "x", "b", "c"}, []string{"a", "b", "y", "c"}, []string{"x", "y"}},
|
||||
{[]string{"a", "b", "c"}, []string{"a", "b", "c"}, []string{}},
|
||||
{[]interface{}{"a", "b", nil}, []interface{}{"a"}, []interface{}{"b", nil}},
|
||||
{[]any{"a", "b", nil}, []any{"a"}, []any{"b", nil}},
|
||||
{[]int{1, 2, 3}, []int{3, 4}, []int{1, 2, 4}},
|
||||
{[]int{1, 2, 3}, []int64{3, 4}, []int{1, 2, 4}},
|
||||
{s1, s2, []TstX{{A: "b"}, {A: "e"}}},
|
||||
|
Reference in New Issue
Block a user