~ubuntu-branches/debian/sid/neovim/sid

« back to all changes in this revision

Viewing changes to test/functional/legacy/091_context_variables_spec.lua

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2016-04-18 21:42:19 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: package-import@ubuntu.com-20160418214219-6lf1w0zadujghas7
Tags: upstream-0.1.3
ImportĀ upstreamĀ versionĀ 0.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
    -- Test for getbufvar().
14
14
    -- Use strings to test for memory leaks.
15
15
    source([[
 
16
      let t:testvar='abcd'
 
17
      $put =string(gettabvar(1, 'testvar'))
 
18
      $put =string(gettabvar(1, 'testvar'))
16
19
      let b:var_num = '1234'
17
20
      let def_num = '5678'
18
21
      $put =string(getbufvar(1, 'var_num'))
125
128
    -- Assert buffer contents.
126
129
    expect([[
127
130
      start:
 
131
      'abcd'
 
132
      'abcd'
128
133
      '1234'
129
134
      '1234'
130
135
      {'var_num': '1234'}