Skip to content

Commit

Permalink
Update slice_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
lindsaygelle authored Sep 13, 2023
1 parent d8e3786 commit adbc5e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (

// TestAppend tests Slice.Append.
func TestAppend(t *testing.T) {
s := &[]Slice[int]{}
s := &slice.Slice[int]{}
s.Append(1)
if ok := len(*s) == 1; !ok {
t.Fatalf("len(*Slice) != 1")
}
s := &[]Slice[int]{}
s = &slice.Slice[int]{}
s.Append(1, 2)
if ok := len(*s) == 2; !ok {
t.Fatalf("len(*Slice) != 2")
Expand Down

0 comments on commit adbc5e1

Please sign in to comment.