File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -1134,6 +1134,17 @@ func testWindow(v *Nvim) func(*testing.T) {
1134
1134
t .Fatalf ("expected %v but got %v" , wantWinNum , gotWinNum )
1135
1135
}
1136
1136
})
1137
+
1138
+ t .Run ("IsWindowValid" , func (t * testing.T ) {
1139
+ valid , err := v .IsWindowValid (Window (0 ))
1140
+ if err != nil {
1141
+ t .Fatal (err )
1142
+ }
1143
+
1144
+ if ! valid {
1145
+ t .Fatalf ("expected valid but got %t" , valid )
1146
+ }
1147
+ })
1137
1148
})
1138
1149
1139
1150
t .Run ("Batch" , func (t * testing.T ) {
@@ -1394,6 +1405,20 @@ func testWindow(v *Nvim) func(*testing.T) {
1394
1405
t .Fatalf ("expected %v but got %v" , wantWinNum , gotWinNum )
1395
1406
}
1396
1407
})
1408
+
1409
+ t .Run ("IsWindowValid" , func (t * testing.T ) {
1410
+ b := v .NewBatch ()
1411
+
1412
+ var valid bool
1413
+ b .IsWindowValid (Window (0 ), & valid )
1414
+ if err := b .Execute (); err != nil {
1415
+ t .Fatal (err )
1416
+ }
1417
+
1418
+ if ! valid {
1419
+ t .Fatalf ("expected valid but got %t" , valid )
1420
+ }
1421
+ })
1397
1422
})
1398
1423
}
1399
1424
}
You can’t perform that action at this time.
0 commit comments