Skip to content

Commit

Permalink
update function name in test file too
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth authored Jan 2, 2025
1 parent e93dd62 commit 4ff1d00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions widget/entry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ func TestEntry_OnPaste(t *testing.T) {
}
}

func TestEntry_Insert(t *testing.T) {
func TestEntry_InsertAtCursor(t *testing.T) {
tests := []struct {
name string
entry *widget.Entry
Expand Down Expand Up @@ -1014,7 +1014,7 @@ func TestEntry_Insert(t *testing.T) {

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
tt.entry.Insert(tt.insertText)
tt.entry.InsertAtCursor(tt.insertText)
assert.Equal(t, tt.wantText, tt.entry.Text)
assert.Equal(t, tt.wantRow, tt.entry.CursorRow)
assert.Equal(t, tt.wantCol, tt.entry.CursorColumn)
Expand Down

0 comments on commit 4ff1d00

Please sign in to comment.