gilo/editor/editor_test.go
Timothy Warren 41d1aa6553
All checks were successful
timw4mail/gilo/pipeline/head This commit looks good
Insert a char
2021-04-01 16:17:13 -04:00

34 lines
542 B
Go

package editor
import "testing"
func TestNew(t *testing.T) {
e := New()
if e == nil {
t.Errorf("Failed to create editor")
}
}
//type moveCursor struct {
// key string
// editor *editor
//}
//
//var cursorTests = []moveCursor{
// {"\x1b", New()},
//}
//
//func TestMoveCursor(t *testing.T) {
// for _, test := range cursorTests {
// e := New()
// e.moveCursor(test.key)
// want := test.editor
// got := e
//
// if got != want {
// t.Errorf("Output %v not equal to expected %v for input %q", got, want, test.key)
// }
// }
//}