elvish/pkg/edit/minibuf_test.go

24 lines
350 B
Go
Raw Normal View History

package edit
2019-12-18 07:43:00 +08:00
import (
"testing"
"src.elv.sh/pkg/cli/term"
2019-12-18 07:43:00 +08:00
)
func TestMinibuf(t *testing.T) {
f := setup(t)
2019-12-18 07:43:00 +08:00
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,
)
}