gilo/editor/editor_test.go
Timothy Warren 1d4c8f99c0
All checks were successful
timw4mail/gilo/pipeline/head This commit looks good
Move file-specific logic to a document struct
2021-04-01 12:02:17 -04:00

33 lines
541 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)
// }
// }
//}