Skip to content

Commit

Permalink
update List tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hsldymq committed Mar 31, 2024
1 parent 1f91847 commit edfcabd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ func TestList_MergeSlices(t *testing.T) {
t.Fatalf("test List.MergeSlices expect: %v, actual: %v", expect, actual)
}

list = NewList[int]()
list.MergeSlices([]int{1, 2, 3}, []int{4, 5, 6}, []int{7, 8, 9})
list = NewList[int](1, 2, 3)
list.MergeSlices()
actual = []int{}
for v := range list.Iter() {
actual = append(actual, v)
}
expect = []int{1, 2, 3, 4, 5, 6, 7, 8, 9}
expect = []int{1, 2, 3}
if !slices.Equal(expect, actual) {
t.Fatalf("test List.MergeSlices expect: %v, actual: %v", expect, actual)
}
Expand Down

0 comments on commit edfcabd

Please sign in to comment.