elvish/pkg/edit/minibuf_test.go

25 lines
381 B
Go
Raw Normal View History

package edit
2019-12-18 07:43:00 +08:00
import (
"testing"
2019-12-24 04:00:59 +08:00
"github.com/elves/elvish/pkg/cli/term"
2019-12-18 07:43:00 +08:00
)
func TestMinibuf(t *testing.T) {
f := setup()
defer f.Cleanup()
evals(f.Evaler, `edit:minibuf:start`)
f.TestTTY(t,
"~> \n",
" MINIBUF ", Styles,
"********* ", term.DotHere,
)
feedInput(f.TTYCtrl, "edit:insert-at-dot put\n")
f.TestTTY(t,
"~> put", Styles,
" vvv", term.DotHere,
)
}