gilo/editor/editor_test.go

34 lines
542 B
Go
Raw Normal View History

2021-03-31 19:17:04 -04:00
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)
// }
// }
2021-04-01 16:17:13 -04:00
//}