" Test that the PymodeLintAuto changes a badly formated buffer." Load sample python file.read ./test_python_sample_code/pymoderun_sample.py" Delete the first line (which is not present in the original file) and save" loaded file.execute "normal! gg"execute "normal! dd"noautocmd write!" Allow switching to windows with buffer command.let s:curr_buffer = bufname("%")set switchbuf+=useopen" Change the buffer.PymodeRunwrite!let run_buffer = bufname("run")execute "buffer " . run_buffer" Assert changes." There exists a buffer.call assert_true(len(run_buffer) > 0)" This buffer has more than five lines.call assert_true(line('$') > 5)if len(v:errors) > 0cquit!elsequit!endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。