mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-16 05:47:06 +09:00
Start working on splits
This commit is contained in:
16
cmd/micro/views/splits_test.go
Normal file
16
cmd/micro/views/splits_test.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package views
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestHSplit(t *testing.T) {
|
||||
root := NewRoot(0, 0, 80, 80)
|
||||
n1 := root.VSplit(true)
|
||||
root.GetNode(n1).VSplit(true)
|
||||
root.GetNode(root.id).ResizeSplit(7)
|
||||
root.Resize(120, 120)
|
||||
|
||||
fmt.Println(root.String())
|
||||
}
|
||||
Reference in New Issue
Block a user