Skip to content

Commit

Permalink
textinput: add test that makes slicing outside cap occur
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelFangel committed Sep 8, 2024
1 parent e308af8 commit 1644ce0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions textinput/textinput_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,10 @@ func Test_CurrentSuggestion(t *testing.T) {
t.Fatalf("Error: expected first suggestion but was %s", suggestion)
}
}

func Test_SlicingOutsideCap(t *testing.T) {
textinput := New()
textinput.Placeholder = "作業ディレクトリを指定してください"
textinput.Width = 32
textinput.View()
}

0 comments on commit 1644ce0

Please sign in to comment.