Skip to content

Commit

Permalink
Merge pull request #397 from mhinz/tests
Browse files Browse the repository at this point in the history
tests: global and local options
  • Loading branch information
bfredl committed May 15, 2019
2 parents 1133b21 + 1d121e0 commit 451d259
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/test_vim.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,15 @@ def test_vars(vim):


def test_options(vim):
assert vim.windows[0].options['listchars'] == 'tab:> ,trail:-,nbsp:+'
vim.windows[0].options['listchars'] = 'tab:xy'
assert vim.windows[0].options['listchars'] == 'tab:xy'
assert vim.options['background'] == 'dark'
vim.options['background'] = 'light'
assert vim.options['background'] == 'light'


def test_local_options(vim):
assert vim.windows[0].options['foldmethod'] == 'manual'
vim.windows[0].options['foldmethod'] = 'syntax'
assert vim.windows[0].options['foldmethod'] == 'syntax'


def test_buffers(vim):
Expand Down

0 comments on commit 451d259

Please sign in to comment.