@@ -20,13 +20,14 @@ endfunc
2020func Nb_basic (port)
2121 call delete (" Xnetbeans" )
2222 call writefile ([], " Xnetbeans" )
23+ call writefile (repeat ([' abcdefghijklmnopqrstuvwxyz' ], 5 ), " XREADME.txt" )
2324 exe ' nbstart :localhost:' . a: port . ' :bunny'
2425 call assert_true (has (" netbeans_enabled" ))
2526
2627 call WaitFor (' len(readfile("Xnetbeans")) > 2' )
27- split + $ README .txt
28+ split + $ XREADME .txt
2829
29- " Opening README .txt will result in a setDot command
30+ " Opening XREADME .txt will result in a setDot command
3031 call WaitFor (' len(readfile("Xnetbeans")) > 4' )
3132 call WaitFor (' getcurpos()[1] == 3' )
3233 let pos = getcurpos ()
@@ -41,11 +42,12 @@ func Nb_basic(port)
4142 call assert_equal (' AUTH bunny' , lines [0 ])
4243 call assert_equal (' 0:version=0 "2.5"' , lines [1 ])
4344 call assert_equal (' 0:startupDone=0' , lines [2 ])
44- call assert_equal (' 0:fileOpened=0 "README .txt" T F' , substitute (lines [3 ], ' ".*/' , ' "' , ' ' ))
45+ call assert_equal (' 0:fileOpened=0 "XREADME .txt" T F' , substitute (lines [3 ], ' ".*/' , ' "' , ' ' ))
4546
4647 call assert_equal (' 0:disconnect=1' , lines [6 ])
4748
4849 call delete (" Xnetbeans" )
50+ call delete (" XREADME.txt" )
4951endfunc
5052
5153func Test_nb_basic ()
0 commit comments