Esempio n. 1
0
 def notification_cb(name, args):
     eq(name, 'setup3')
     vim.vars['result1'] = 0
     vim.vars['result2'] = 0
     vim.vars['result3'] = 0
     vim.vars['result4'] = 0
     cmd = 'let g:result1 = send_call(%d, "call", %d)' % (cid, 2,)
     vim.command(cmd)
     eq(vim.vars['result1'], 4)
     eq(vim.vars['result2'], 8)
     eq(vim.vars['result3'], 16)
     eq(vim.vars['result4'], 32)
     vim.loop_stop()
Esempio n. 2
0
 def error_cb(err):
     errors.append(err)
     vim.loop_stop()
Esempio n. 3
0
 def notification_cb(name, args):
     eq(name, 'setup2')
     cmd = 'let g:result = send_call(%d, "client-call2", 1, 2, 3)' % cid
     vim.command(cmd)
     eq(vim.vars['result'], [7, 8, 9])
     vim.loop_stop()
Esempio n. 4
0
 def notification_cb(name, args):
     eq(name, 'setup')
     cmd = 'let g:result = rpcrequest(%d, "client-call", 1, 2, 3)' % cid
     vim.command(cmd)
     eq(vim.vars['result'], [4, 5, 6])
     vim.loop_stop()