Skip to content
This repository was archived by the owner on Sep 12, 2022. It is now read-only.

Commit ea3f779

Browse files
committed
Test open file
1 parent 3cc40bb commit ea3f779

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,15 @@ def setUp(self):
194194

195195

196196
class TestBuilitInFunctions(NetrangerLocalTest):
197-
def test_NETROpen(self):
197+
def test_NETROpen_dir(self):
198198
nvim.input('l')
199199
self.assert_content('subdir', ind=0, hi='dir')
200200
self.assert_content('subdir2', ind=1, hi='dir')
201201

202+
def test_NETROpen_file(self):
203+
nvim.input('lGl')
204+
self.assertEqual('a', nvim.call('expand', '%:t'))
205+
202206
def test_NETRParent(self):
203207
nvim.input('h')
204208
self.assert_content('local', ind=0, hi='dir')

0 commit comments

Comments
 (0)