mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-14 19:27:58 +08:00
25 lines
381 B
Go
25 lines
381 B
Go
package edit
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/elves/elvish/pkg/cli/term"
|
|
)
|
|
|
|
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,
|
|
)
|
|
}
|